At 06:01 AM 1/9/2008 +0100, Christian Heimes wrote: >However the PEP covers only the basic infrastructure for lazy imports. >For example imp.lazy_import("a.b.c") doesn't put "a" and "a.b" in >sys.modules.
That's probably a mistake. In the early days of peak.util.imports (which is now available as the "Importing" package on PyPI), I went through a lot of hairy edge conditions regarding such matters as when parent packages must be present, and ensuring the correct runtime ordering of post-import callbacks. Although I glanced at some of your earlier patch versions and had comments, you should be aware that I have *not* validated it for these sorts of trickier timing considerations, mostly because I'm not 100% sure what they are any more, only that I made sure peak.util.imports could handle them. _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com