[issue25791] Raise an ImportWarning when __spec__.parent/__package__ isn't defined for a relative import

Antoine Pitrou report at bugs.python.org
Mon May 29 03:10:17 EDT 2017


Antoine Pitrou added the comment:

> Is it possible Cython is still supporting pre-PEP-328 style implicit relative imports, even in Python 2.7+?

That might be the case.  I can't find anything in the Cython docs.  Stefan, could you shed a light?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25791>
_______________________________________


More information about the Python-bugs-list mailing list