Is this possible: scoping question with exec
Brian Kelley
bkelley at wi.mit.edu
Thu Aug 23 16:34:12 EDT 2001
Running Python 2.1
def a():
return b
exec "a()" in {'b':1, 'a':a}
b doesn't seem to passed as a global into the function a.
Thanks in advance.
Brian Kelley
More information about the Python-list
mailing list