Name: Anonymous 2009-01-12 14:10
The third version of FIOC ( Python3000 for you cheese lovers ) is kind of lame, even lamer than classic FIOC. Minor changes suck and bigger ones weren't necessary.
>>> x = 10
>>> def f():
... print x
...
>>> f()
10
>>> def f():
... print x
... x = 20
...
>>> f()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<stdin>", line 2, in f
UnboundLocalError: local variable 'x' referenced before assignment
>>>