please help explain this result
Yingjie Lan
lanyjie at yahoo.com
Sun Oct 17 08:53:39 EDT 2010
More information about the Python-list mailing list
Sun Oct 17 08:53:39 EDT 2010
- Previous message (by thread): please help explain this result
- Next message (by thread): please help explain this result
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
--- On Sun, 10/17/10, Steven D'Aprano <steve at REMOVE-THIS-cybersource.com.au> wrote: > (1) If you assign to a variable *anywhere* in the function, > it is a local > *everywhere* in the function. > > There is no way to have a variable refer to a local in some > places of a > function and a global in other places of the same function. > This is by > design. > Super crystal clear. Thanks a lot! Yingjie
- Previous message (by thread): please help explain this result
- Next message (by thread): please help explain this result
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list