[Python-ideas] make __closure__ writable

Victor Stinner victor.stinner at gmail.com
Mon Mar 26 02:32:15 CEST 2012

2012/3/16 Yury Selivanov <yselivanov.ml at gmail.com>:
> Can we make the __closure__ attribute writeable?  Since __code__ already is, ...

I never understood why __code__ is writable. What is the usecase of
modifying the code of an existing function?


More information about the Python-ideas mailing list