[Python-Dev] Read-only function attributes

Fredrik Lundh fredrik@effbot.org
Tue, 30 Jan 2001 10:05:47 +0100

Ka-Ping Yee wrote:
> I see that the function attribute feature specifically allows
> assignment to func_code and func_defaults, but no other special
> attributes.  This seems really suspect to me.  Why would we want
> to allow the reassignment of special attributes at all?

to allow an IDE to "patch" a running program?