New submission from STINNER Victor <vstin...@python.org>:
Include/marshal.h defines 2 functions with FILE* argument in the limited C API, whereas the PEP 384 disallows that: "In addition, functions expecting FILE* are not part of the ABI, to avoid depending on a specific version of the Microsoft C runtime DLL on Windows." https://www.python.org/dev/peps/pep-0384/ PyAPI_FUNC(void) PyMarshal_WriteLongToFile(long, FILE *, int); PyAPI_FUNC(void) PyMarshal_WriteObjectToFile(PyObject *, FILE *, int); I propose to exclude these functions from the limited C API. Hopefully, they are not part of the documented stable ABI. ---------- components: C API messages: 403941 nosy: vstinner priority: normal severity: normal status: open title: [C API] marshal.h must not use FILE* type in the limited C API versions: Python 3.11 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue45474> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com