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 aCuria
Recipients aCuria
Date 2020-01-16.09:25:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1579166721.74.0.203064876936.issue39355@roundup.psfhosted.org>
In-reply-to
Content
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”
History
Date User Action Args
2020-01-16 09:25:21aCuriasetrecipients: + aCuria
2020-01-16 09:25:21aCuriasetmessageid: <1579166721.74.0.203064876936.issue39355@roundup.psfhosted.org>
2020-01-16 09:25:21aCurialinkissue39355 messages
2020-01-16 09:25:21aCuriacreate