Serhiy Storchaka added the comment:

It is easy to replace the SystemError with a recursive import of the missing 
parent package. It is enough to remove raising the SystemError.

The other effect of this change is that relative import from the top-level 
module now raises ImportError "attempted relative import with no known parent 
package" instead of SystemError "Parent module '' not loaded, cannot perform 
relative import".

----------
stage:  -> patch review

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30876>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to