[Python-Dev] Explicit Lexical Scoping (pre-PEP?) (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Thu Jul 6 02:30:54 CEST 2006
- Previous message: [Python-Dev] Explicit Lexical Scoping (pre-PEP?)
- Next message: [Python-Dev] Explicit Lexical Scoping (pre-PEP?)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Simon Percivall wrote:
def foo(): def bar(): foo.x = 3
That already had a different meaning - it assigns to an attribute of the function object created by executing def foo().
-- Greg
- Previous message: [Python-Dev] Explicit Lexical Scoping (pre-PEP?)
- Next message: [Python-Dev] Explicit Lexical Scoping (pre-PEP?)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]