doted filenames in import statements

Christian Heimes lists at cheimes.de
Tue Jul 21 18:48:40 EDT 2009


Chris Rebert wrote:
> You want the imp.load_module() function:
> http://docs.python.org/library/imp.html#imp.load_module
> 
> __import__() only operates on module/package names. I'm not sure how
> you even got it to work with a filename...

It used to work with filenames but it was a bug. I guess several people
are swearing curses on me for removing this 'feature'. *g*

Christian




More information about the Python-list mailing list