skip> You can achieve these sorts of effects by assigning an object to
skip> sys.modules[modulename].
I forgot you should always be able to assign to the module's __dict__
attribute as well:
>>> import os
>>> os.__dict__['foo'] = 'a'
>>> os.foo
'a'
S
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe:
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
