Message268676
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. |
|
Date |
User |
Action |
Args |
2016-06-16 16:33:33 | petr.viktorin | set | recipients:
+ petr.viktorin, ncoghlan, larry |
2016-06-16 16:33:33 | petr.viktorin | set | messageid: <1466094813.1.0.702835277792.issue27332@psf.upfronthosting.co.za> |
2016-06-16 16:33:33 | petr.viktorin | link | issue27332 messages |
2016-06-16 16:33:32 | petr.viktorin | create | |
|