[issue30403] PEP 547: Running extension modules using -m switch

Marcel Plch report at bugs.python.org
Fri Sep 8 09:19:57 EDT 2017


Marcel Plch added the comment:

I have made a patch both for cython and cpython implementing a way to use Py_mod_create in cython.

Basically module def that specifies a new "Py_mod_cython" slot are excluded from the rule of no module creation, so these modules can be executed directly even though they specify Py_mod_create.

Is this approach safe or does it make easy for things to go wrong?

cpython - https://github.com/Traceur759/cpython/commit/51a7508d176b23dcf3547b970cf7e6a50898aae2

cython - https://github.com/Traceur759/cython/commit/2ca706e10f469cd38947eecd8b92c142532b20bc

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue30403>
_______________________________________


More information about the Python-bugs-list mailing list