Generate a new object each time a name is imported

Paul Rubin http
Sun Aug 2 07:18:34 EDT 2009


Peter Otten <__peter__ at web.de> writes:
> >>> import sys
> >>> sys.modules["yadda"] = A()

OMG.... wow.  I bow to you.  But I'm not sure whether that's bowing in
awe or in terror.



More information about the Python-list mailing list