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
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to