> I found this: > setattr(__import__(__name__), name, value) > > But too much underscores.... Nothing better? > Marco.
setattr(sys.modules[__name__], name, value) -- Regards, Diez B. Roggisch -- http://mail.python.org/mailman/listinfo/python-list
> I found this: > setattr(__import__(__name__), name, value) > > But too much underscores.... Nothing better? > Marco.
setattr(sys.modules[__name__], name, value) -- Regards, Diez B. Roggisch -- http://mail.python.org/mailman/listinfo/python-list