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 Dormouse759
Recipients Dormouse759, ncoghlan, petr.viktorin, scoder, terry.reedy
Date 2017-09-08.13:19:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1504876797.38.0.288947666889.issue30403@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2017-09-08 13:19:57Dormouse759setrecipients: + Dormouse759, terry.reedy, ncoghlan, scoder, petr.viktorin
2017-09-08 13:19:57Dormouse759setmessageid: <1504876797.38.0.288947666889.issue30403@psf.upfronthosting.co.za>
2017-09-08 13:19:57Dormouse759linkissue30403 messages
2017-09-08 13:19:57Dormouse759create