Generate a new object each time a name is imported

Paul Rubin http
Sun Aug 2 13:18:34 CEST 2009

Peter Otten <__peter__ at> 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