[Python-Dev] PEP 318: Properties (original) (raw)

Phillip J. Eby pje at telecommunity.com
Mon Apr 5 11🔞34 EDT 2004


At 09:20 AM 4/5/04 -0400, Jewett, Jim J wrote:

x=asdlfjk

looks like x is now set to something. I expect it it to stay that way until the next x=??? statement.

Or the next 'def x' statement, or 'class x' statement. Assignment is not the only way to bind a name in Python.

Even if you know nothing about decorators, it should be apparent that in today's Python, this:

x = 42

def x(): pass

does not leave x equal to 42.



More information about the Python-Dev mailing list