[PEAK] Exceptions in lazy imported module not reported

Phillip J. Eby pje at telecommunity.com
Sun Dec 24 14:53:04 EST 2006


At 09:16 AM 12/24/2006 -0800, Vinj Vinj wrote:
> > Also, you probably want sys.meta_path.insert(0,
> > LazyImporter(...)) instead
> > of append, so that the lazy importer takes
>
>Do I still need this if I'm using map(lazyModule
>....)?

No.


>Is there any downside (besides the exception not being
>caught) of using lazyModule? I'm using it quite
>extensively all over my application.

Tools that expect sys.modules to contain only module objects or 'None' may 
do odd things with unused lazy modules.  For example, they may force them 
to be imported.




More information about the PEAK mailing list