Skip to content

bpo-32381: Remove unused _Py_fopen() function#23711

Merged
vstinner merged 1 commit into
python:masterfrom
vstinner:remove_py_fopen
Dec 9, 2020
Merged

bpo-32381: Remove unused _Py_fopen() function#23711
vstinner merged 1 commit into
python:masterfrom
vstinner:remove_py_fopen

Conversation

@vstinner

@vstinner vstinner commented Dec 8, 2020

Copy link
Copy Markdown
Member

Remove the private _Py_fopen() function which is no longer needed.
Use _Py_wfopen` or _Py_fopen_obj() instead.

https://bugs.python.org/issue32381

Remove the private _Py_fopen() function which is no longer needed.
Use _Py_wfopen` or _Py_fopen_obj() instead.
@vstinner

vstinner commented Dec 8, 2020

Copy link
Copy Markdown
Member Author

Using a bytes string for a filename causes encoding headaches likes https://bugs.python.org/issue32381 It's better to use wide character strings or Unicode strings for filenames.

@vstinner

vstinner commented Dec 8, 2020

Copy link
Copy Markdown
Member Author

See also https://bugs.python.org/issue42569

@hroncok

hroncok commented Jan 5, 2021

Copy link
Copy Markdown
Contributor

Boost is affected by the removal: https://bugzilla.redhat.com/show_bug.cgi?id=1912903

adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 13, 2021
Remove the private _Py_fopen() function which is no longer needed.
Use _Py_wfopen() or _Py_fopen_obj() instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants