[issue14369] make __closure__ writable
report at bugs.python.org
Wed Apr 25 01:52:18 CEST 2012
Yury Selivanov <yselivanov at gmail.com> added the comment:
> The patch causes crashes.
Yes, that's known.
First, we need to check, that we can only write tuple of cell objects or None in __closure__ (that's easy to add). Secondly, perhaps, we can check __closure__ correctness each time we start evaluating a code object. The latter would offer us better stability, but may also introduce some slowdowns -- need to find some time to implement and benchmark this.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list