mirror of
https://github.com/python/cpython.git
synced 2026-03-04 12:01:00 +00:00
gh-127350: Add Py_fopen() and Py_fclose() functions (#127821)
This commit is contained in:
parent
7e8c571604
commit
f89e5e20cb
18 changed files with 270 additions and 53 deletions
|
|
@ -2,7 +2,13 @@
|
|||
# error "this header file must not be included directly"
|
||||
#endif
|
||||
|
||||
// Used by _testcapi which must not use the internal C API
|
||||
PyAPI_FUNC(FILE*) _Py_fopen_obj(
|
||||
PyAPI_FUNC(FILE*) Py_fopen(
|
||||
PyObject *path,
|
||||
const char *mode);
|
||||
|
||||
// Deprecated alias to Py_fopen() kept for backward compatibility
|
||||
Py_DEPRECATED(3.14) PyAPI_FUNC(FILE*) _Py_fopen_obj(
|
||||
PyObject *path,
|
||||
const char *mode);
|
||||
|
||||
PyAPI_FUNC(int) Py_fclose(FILE *file);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue