[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?
Victor


More information about the Python-ideas mailing list

AltStyle によって変換されたページ (->オリジナル) /