naming objects from string
Wildemar Wildenburger
wildemar at freakmail.de
Thu Sep 21 01:09:03 EDT 2006
Damjan wrote:
> try
> sys.modules[__name__].__dict__[x] = a
@manstay: You see! Ugly, unreadable trickery!
Hands off this stuff, bad mojo!
You've been told three very different approaches now, which is a pretty
good indicator that there is no obvious way to do it. Which means
another angle to your problem might make it a lot easier.
(btw: Try 'import this' at the python prompt for some wise words.)
Please describe your problem and let us suggest that new angle.
wildemar
More information about the Python-list
mailing list