[Python-Dev] PEP 318: Properties (original) (raw)
Phillip J. Eby pje at telecommunity.com
Mon Apr 5 11🔞34 EDT 2004
- Previous message: [Python-Dev] PEP 318: Let's propose some useful built-in decorators
- Next message: [Python-Dev] The Need for a Declarative Syntax Element (aka
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message: [Python-Dev] PEP 318: Let's propose some useful built-in decorators
- Next message: [Python-Dev] The Need for a Declarative Syntax Element (aka
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]