mirror of
https://github.com/python/cpython.git
synced 2026-04-20 19:01:14 +00:00
gh-128863: Deprecate private C API functions (#128864)
Deprecate private C API functions: * _PyBytes_Join() * _PyDict_GetItemStringWithError() * _PyDict_Pop() * _PyThreadState_UncheckedGet() * _PyUnicode_AsString() * _Py_HashPointer() * _Py_fopen_obj() Replace _Py_HashPointer() with Py_HashPointer(). Remove references to deprecated functions.
This commit is contained in:
parent
470a0a68eb
commit
9012fa741d
16 changed files with 103 additions and 30 deletions
|
|
@ -6,9 +6,11 @@ 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);
|
||||
// Deprecated alias kept for backward compatibility
|
||||
Py_DEPRECATED(3.14) static inline FILE*
|
||||
_Py_fopen_obj(PyObject *path, const char *mode)
|
||||
{
|
||||
return Py_fopen(path, mode);
|
||||
}
|
||||
|
||||
PyAPI_FUNC(int) Py_fclose(FILE *file);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue