[Python-Dev] Read-only function attributes

Barry A. Warsaw barry@digicool.com
Tue, 30 Jan 2001 10:29:43 -0500


>>>>> "KY" == Ka-Ping Yee <ping@lfw.org> writes:

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

... and actually, none of that changed w/ the function attribute
patch.  You've been able to assign to func_code and func_defaults
since Python 1.6!

-Barry