[issue3221] SystemError: Parent module 'foo' not loaded on import statement

Nick Coghlan report at bugs.python.org
Sat Jul 5 02:54:04 CEST 2008

Nick Coghlan <ncoghlan at gmail.com> added the comment:

One idea would be to change the import code to only produce a warning
for a missing __package__ entry instead of a SystemError (reserving the
SystemError for cases where the package name is derived from __name__
rather than being retrieved from the __package__ attribute).

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list