[Python-ideas] Object for accessing identifiers/names

Random832 random832 at fastmail.com
Wed Jun 1 16:23:59 EDT 2016


On Wed, Jun 1, 2016, at 15:22, Koos Zevenhoven wrote:
> name_object = identifier some_name
...
> This is similar to things that can be done with closures.

It sounds like for locals this could be implemented by adding your
methods to the cell type (right now cell objects cannot be modified from
python code), and having this statement return the cell.

Any local variable that is used in this way gets a cell, the same as any
local that is used in a closure does now.


More information about the Python-ideas mailing list