changing local namespace of a function

M.E.Farmer mefjr75 at hotmail.com
Fri Feb 4 15:50:12 EST 2005


Hello Bo,
Don't use dict it is a builtin ;)

Also try this stuff out in an interpreter session it is easy and fast
to get your own answers.

>>> def fun(d):
...     __dict__ = d
...     return __dict__
hth,
M.E.Farmer




More information about the Python-list mailing list