This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients brett.cannon, eric.snow, ncoghlan, pitrou, python-dev, scoder, superluser
Date 2017-05-28.19:25:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In-reply-to <>
multidict is a package, the Cython module is multidict._multidict.

Cython translated "import sys" into this:

  __pyx_t_1 = __Pyx_Import(__pyx_n_s_sys, 0, -1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5, __pyx_L1_error)

And __Pyx_Import is this:

Note that __Pyx_MODULE_NAME is defined thusly:
#define __Pyx_MODULE_NAME "multidict._multidict"

So perhaps Cython is indeed attempting a PyImport_ImportModuleLevelObject()
call with a level of 1 for "import sys" before falling back on a level of -1...

Why I don't know.

(also since __Pyx_MODULE_NAME seems known, Cython could actually define __package__)
Date User Action Args
2017-05-28 19:25:15pitrousetrecipients: + pitrou, brett.cannon, ncoghlan, scoder, python-dev, eric.snow, superluser
2017-05-28 19:25:15pitroulinkissue25791 messages
2017-05-28 19:25:15pitroucreate