diff options
author | Victor Stinner <vstinner@python.org> | 2025-01-06 12:43:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-06 12:43:09 (GMT) |
commit | f89e5e20cb8964653ea7d6f53d3e40953b6548ce (patch) | |
tree | 743bfa078c6861561f1a1b908fc848b968e89fad /Misc | |
parent | 7e8c571604cd18e65cefd26bfc48082840264549 (diff) | |
download | cpython-f89e5e20cb8964653ea7d6f53d3e40953b6548ce.zip cpython-f89e5e20cb8964653ea7d6f53d3e40953b6548ce.tar.gz cpython-f89e5e20cb8964653ea7d6f53d3e40953b6548ce.tar.bz2 |
gh-127350: Add Py_fopen() and Py_fclose() functions (#127821)
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/C_API/2024-12-11-13-01-26.gh-issue-127350.uEBZZ4.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C_API/2024-12-11-13-01-26.gh-issue-127350.uEBZZ4.rst b/Misc/NEWS.d/next/C_API/2024-12-11-13-01-26.gh-issue-127350.uEBZZ4.rst new file mode 100644 index 0000000..d1b528c --- /dev/null +++ b/Misc/NEWS.d/next/C_API/2024-12-11-13-01-26.gh-issue-127350.uEBZZ4.rst @@ -0,0 +1,5 @@ +Add :c:func:`Py_fopen` function to open a file. Similar to the :c:func:`!fopen` +function, but the *path* parameter is a Python object and an exception is set +on error. Add also :c:func:`Py_fclose` function to close a file, function +needed for Windows support. +Patch by Victor Stinner. |