-
Bumped into the mismatched parameter type of
PyModule_New
in https://github.com/pybind/pybind11/pull/2551. See https://docs.python.org/2/c-api/module.html#c.PyModule_New. -
PyModule_CheckExact
was also still missing, so while making changes, I added this one as well. -
Test
pypy/module/cpyext/test/test_cpyext.py::TestApi::test_signature
failed usingbuild_type_checkers
to createPyModule_Check
andPyModule_CheckExact
, so I changed the signature'svoid *
toPyObject *
, as allPy..._Check
andPy..._CheckExact
are defined in the CPython docs as functions taking aPyObject *
(even most/all of them are actually macros?). See e.g. https://docs.python.org/2/c-api/set.html#c.PySet_Check.