[Python-Dev] Object customization (was: Arbitrary attributes on funcs and methods)
Fredrik Lundh
fredrik@pythonware.com
Fri, 14 Apr 2000 15:34:48 +0200
Barry Wrote:
> > Can I get at least a +0? :)
okay, I'll retract. here's today's opinion:
+1 on an experimental future, which is not part
of the language definition, and not necessarily
supported by all implementations. (and where
supported, not necessarily very efficient).
-1 on static function variables implemented as
attributes on function or method objects.
def eff():
"eff"
print "eff", eff.__doc__
def bot():
"bot"
print "bot", bot.__doc__
eff()
bot()
eff, bot =3D bot, eff
eff()
bot()
# or did your latest patch solve this little dilemma?
# if so, -1 on your patch ;-)
</F>