J
Jacek Generowicz
Python's closures are read-only. But is there a way of hacking one's
way around this restriction?
The funct_closure attribute is read-only, so I can't rebind it. It's a
tuple, so I can't mutate it. Even if I could, I can't instantiate cell
ojects. The cell objects don't seem to have any interesting attributes
that one might use to mutate the contents.
Looks hopeless, but maybe someone knows better.
way around this restriction?
The funct_closure attribute is read-only, so I can't rebind it. It's a
tuple, so I can't mutate it. Even if I could, I can't instantiate cell
ojects. The cell objects don't seem to have any interesting attributes
that one might use to mutate the contents.
Looks hopeless, but maybe someone knows better.