boostorg / python

Boost.org python module
http://boostorg.github.io/python
Boost Software License 1.0
472 stars 201 forks source link

Fix compatibility with Python 3.10.0a4: fopen #344

Closed vstinner closed 3 years ago

vstinner commented 3 years ago

Replace private _Py_fopen() with public fopen(): private _Py_fopen() function was removed in 3.10.0a4: https://bugs.python.org/issue32381

vstinner commented 3 years ago

Fedora downstream issue: https://bugzilla.redhat.com/show_bug.cgi?id=1912903

vstinner commented 3 years ago

If Boost needs a public C API for https://www.python.org/dev/peps/pep-0446/ please ask for it :-) But it would be a new Python feature. In general, third party projects should not rely on private functions, or be prepared for breakage at new Python version.

stefanseefeld commented 3 years ago

Thanks !