help me
Richard Blackwood
richardblackwood at cloudthunder.com
Sun Oct 10 00:14:57 EDT 2004
<SNIP>
>>
> Alright, you say he doesn't need a dictionary, and the other guy says
> he doesn't actually need eval. What is this mysterious non-exec,
> non-eval, non-globals(), non-dictionary solution? ;)
>
Nevermind. My bad. I misread your post. Go with the globals()
function, it will save you some headaches vs. eval() and exec. On the
other hand, you could also use eval w/ the globals dictionary. I don't
think that has any problems but Andrew can correct me on this one.
More information about the Python-list
mailing list