Author aCuria
Recipients aCuria
Date 2020-01-16.09:25:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The Python library will not compile with a C++2020 compiler because the code uses the reserved “module” keyword
For example, in warnings.h, we have the following code:
#ifndef Py_LIMITED_API
PyAPI_FUNC(int) PyErr_WarnExplicitObject(
    PyObject *category,
    PyObject *message,
    PyObject *filename,
    int lineno,
    PyObject *module,
PyObject *registry);
In modsupport.h we have the following code:
PyAPI_FUNC(int) PyModule_ExecDef(PyObject *module, PyModuleDef *def);
We can fix this by using a different identifier, for example “pyModule” instead of “module”
Date User Action Args
2020-01-16 09:25:21aCuriasetrecipients: + aCuria
2020-01-16 09:25:21aCuriasetmessageid: <>
2020-01-16 09:25:21aCurialinkissue39355 messages
2020-01-16 09:25:21aCuriacreate