mirror of
https://github.com/python/cpython.git
synced 2026-04-15 16:21:24 +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
|
|
@ -34,5 +34,9 @@ static inline Py_ssize_t PyBytes_GET_SIZE(PyObject *op) {
|
|||
|
||||
PyAPI_FUNC(PyObject*) PyBytes_Join(PyObject *sep, PyObject *iterable);
|
||||
|
||||
// Alias kept for backward compatibility
|
||||
#define _PyBytes_Join PyBytes_Join
|
||||
// Deprecated alias kept for backward compatibility
|
||||
Py_DEPRECATED(3.14) static inline PyObject*
|
||||
_PyBytes_Join(PyObject *sep, PyObject *iterable)
|
||||
{
|
||||
return PyBytes_Join(sep, iterable);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue