mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +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
|
@ -331,7 +331,7 @@ meth_hash(PyObject *self)
|
|||
{
|
||||
PyCFunctionObject *a = _PyCFunctionObject_CAST(self);
|
||||
Py_hash_t x = PyObject_GenericHash(a->m_self);
|
||||
Py_hash_t y = _Py_HashPointer((void*)(a->m_ml->ml_meth));
|
||||
Py_hash_t y = Py_HashPointer((void*)(a->m_ml->ml_meth));
|
||||
x ^= y;
|
||||
if (x == -1) {
|
||||
x = -2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue