brett cannon liivppythonorg tue apr 29 2008 157 pm jim jewett wrote 42908 brett cannon wrote snip id like see pep address question going deal getting duplicate copies modules sysmodules code application uses old name code uses new name much done without introducing custom importer handle mapping names sysmodules module object otherwise going done using _ import following worked python 25 zortpy import sys import collections sysmodules__name__collections import zort zort collections true huh much better solution didnt think going work importc importlib return module found sysmodules end trick works update pep brett _______________________________________________ python3000 mailing list smsbmo9552pythonorg httpmailpythonorgmailmanlistinfopython3000 unsubscribe httpmailpythonorgmailmanoptionspython3000python300040tangomucom thu 07 aug 2008 211614 0700 python3000 stdlibsig pep 3108 stdlib reorgcleanup