A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-April/003526.html below:

Arbitrary attributes on funcs and methods)

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




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4