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/003535.html below:

Arbitrary attributes on funcs and methods)

[Python-Dev] Object customization (was: Arbitrary attributes on funcs and methods) [Python-Dev] Object customization (was: Arbitrary attributes on funcs and methods)Barry A. Warsaw bwarsaw@cnri.reston.va.us
Fri, 14 Apr 2000 11:52:17 -0400 (EDT)
>>>>> "MH" == Mark Hammond <mhammond@skippinet.com.au> writes:

    MH> AFAIK, this would be a pretty serious change.  The compiler
    MH> just generates (basically)PyObject_SetAttr() calls.  There is
    MH> no way in the current runtime to differentiate between
    MH> "compile time" and "runtime" attribute references...  If this
    MH> was done, it would simply be ugly hacks to support what can
    MH> only be described as unpythonic in the first place!

    MH> [Unless of course Im missing something...]

You're not missing anything Mark!  Remember Python's /other/ motto:
"we're all consenting adults here".  If you don't wanna mutate your
function attrs at runtime... just don't! :)

-Barry



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