amazing scope?

andrea crotti andrea.crotti.0 at gmail.com
Fri Nov 30 11:05:40 EST 2012


Well I knew that this works fine, even if I feel a bit guilty to do
this, and better is:

foo = 'bar' if some_condition else 'baz'

Anyway for me the suprise is that something that is defined *later* at
the module scope is found in a function which is defined *earlier*.



More information about the Python-list mailing list