Author petr.viktorin
Recipients larry, ncoghlan, petr.viktorin
Date 2016-06-16.16:33:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1466094813.1.0.702835277792.issue27332@psf.upfronthosting.co.za>
In-reply-to
Content
Currently, Argument Clinic generates "PyModuleDef * module" for the first argument of module-level functions. But, the functions are passed the actual module object, not the ModuleDef.

The correct type to use is PyObject*, which is used for modules in the PyModule_* API.

(It turns out nothing in core Python currently uses the argument except passing it to other _impl functions, but this could change as PEP 489 is improved upon.)

The attached patch contains manual changes only. Please run `make clinic` after applying it to regenerate allll the code.
History
Date User Action Args
2016-06-16 16:33:33petr.viktorinsetrecipients: + petr.viktorin, ncoghlan, larry
2016-06-16 16:33:33petr.viktorinsetmessageid: <1466094813.1.0.702835277792.issue27332@psf.upfronthosting.co.za>
2016-06-16 16:33:33petr.viktorinlinkissue27332 messages
2016-06-16 16:33:32petr.viktorincreate