[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


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



More information about the Python-Dev mailing list