[Python-Dev] closure semantics (original) (raw)
Delaney, Timothy C (Timothy) tdelaney at avaya.com
Sun Oct 26 22:25:19 EST 2003
- Previous message: [Python-Dev] RE: cloning iterators again
- Next message: [Python-Dev] closure semantics
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: Skip Montanaro [mailto:skip at pobox.com]
You meant def f(): x = 12 y = 1 def g(): y = 12 global y in f g() print locals() right?
Er - yes ... :)
Tim Delaney
- Previous message: [Python-Dev] RE: cloning iterators again
- Next message: [Python-Dev] closure semantics
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]