[Python-Dev] Object customization (was: Arbitrary attributes on funcs and methods)

Tim Peters tim_one@email.msn.com
Fri, 14 Apr 2000 12:04:32 -0400


[Tim]
> Yes, of course people will use it to get the effect of function
> statics.  OK by me.  People do the same thing today with class data
> attributes (i.e., to

[Andrew M. Kuchling]
> Wait, the attributes added to a function are visible inside the
> function?

No, same as in JavaScript, you need funcname.attr, just as you need
classname.attr in Python today to fake the effect of mutable class statics
(in the C++ sense).

> [hysteria deleted <wink>]
> ...
> +0 if they're not.