[issue25791] Raise an ImportWarning when __spec__.parent/__package__ isn't defined for a relative import
Brett Cannon
report at bugs.python.org
Sun May 28 14:03:30 EDT 2017
Brett Cannon added the comment:
Is Cython not defining actual module objects or working around types.ModuleType? I'm just trying to figure out how a Cython module is ending up in a place where the attributes that are set by PyModule_NewObject() aren't there (https://github.com/python/cpython/blob/ac5bbd43bc7b769c13ae0412cb28a3521f4d4ff1/Objects/moduleobject.c#L80).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25791>
_______________________________________
More information about the Python-bugs-list
mailing list