mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
gh-106320: Remove private _PyObject_GetState() (#108606)
Move the private _PyObject_GetState() function to the internal C API (pycore_object.h).
This commit is contained in:
parent
fadc2dc7df
commit
b6de2850f2
2 changed files with 4 additions and 6 deletions
|
@ -442,6 +442,10 @@ extern int _PyObject_IsAbstract(PyObject *);
|
||||||
extern int _PyObject_GetMethod(PyObject *obj, PyObject *name, PyObject **method);
|
extern int _PyObject_GetMethod(PyObject *obj, PyObject *name, PyObject **method);
|
||||||
extern PyObject* _PyObject_NextNotImplemented(PyObject *);
|
extern PyObject* _PyObject_NextNotImplemented(PyObject *);
|
||||||
|
|
||||||
|
// Pickle support.
|
||||||
|
// Export for '_datetime' shared extension
|
||||||
|
PyAPI_FUNC(PyObject*) _PyObject_GetState(PyObject *);
|
||||||
|
|
||||||
/* C function call trampolines to mitigate bad function pointer casts.
|
/* C function call trampolines to mitigate bad function pointer casts.
|
||||||
*
|
*
|
||||||
* Typical native ABIs ignore additional arguments or fill in missing
|
* Typical native ABIs ignore additional arguments or fill in missing
|
||||||
|
|
|
@ -437,12 +437,6 @@ PyAPI_FUNC(void) PyObject_ClearWeakRefs(PyObject *);
|
||||||
*/
|
*/
|
||||||
PyAPI_FUNC(PyObject *) PyObject_Dir(PyObject *);
|
PyAPI_FUNC(PyObject *) PyObject_Dir(PyObject *);
|
||||||
|
|
||||||
/* Pickle support. */
|
|
||||||
#ifndef Py_LIMITED_API
|
|
||||||
PyAPI_FUNC(PyObject *) _PyObject_GetState(PyObject *);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/* Helpers for printing recursive container types */
|
/* Helpers for printing recursive container types */
|
||||||
PyAPI_FUNC(int) Py_ReprEnter(PyObject *);
|
PyAPI_FUNC(int) Py_ReprEnter(PyObject *);
|
||||||
PyAPI_FUNC(void) Py_ReprLeave(PyObject *);
|
PyAPI_FUNC(void) Py_ReprLeave(PyObject *);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue