[PEAK] invalid fromlist in importString

alexander smishlajev alex at ank-sia.com
Sat Nov 22 10:07:01 EST 2003


hello!

importString does not play well with imputil: for the first path 
component, importString calls __import__() with fromlist that is not 
expected to exist.  standard implementation seems to ignore the fromlist 
argument, but imputil raises ImportError if an item in fromlist does not 
exist.

may [part] be replaced with ('*',)?  perhaps for the first part only?

best wishes,
alex.






More information about the PEAK mailing list