variable declaration

Michael Tobis mt at 3planes.com
Mon Jan 31 18:23:55 EST 2005


This is definitely a wart:

... z = 42.3
...
... def f():
...    if False:
...       global z
...    z = -666
... 
... f()
... print z




More information about the Python-list mailing list