why is this not working? (nested scope question)
biner.sebastien at ouranos.ca
biner.sebastien at ouranos.ca
Thu Jul 27 09:58:45 EDT 2006
> Actually, the code in the book is:
>
> def f1():
> x = 88
> f2(x)
>
> def f2(x):
> print x
>
> f1()
>
> which makes all the difference in the world. Not to mention that this
> particular section of the book is giving an example of how to write the
> code *without* using nested functions.
Ouch! You got me there, I did not copy the code properly. Now I feel
stupid. Thanks for the enlightment.
I think I am starting to get it.
Sébastien.
More information about the Python-list
mailing list