I'm surprised you found any example of 'locals().update' that worked.
Here's one that doesn't work:
def f(y):
locals().update({'x': y})
return x
print f(3) # prints 3?Jeff
pgpLVe48NBWmT.pgp
Description: PGP signature
-- http://mail.python.org/mailman/listinfo/python-list
