mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
gh-106320: Remove private _PyObject C API (#107159)
Move private _PyObject and private _PyType functions to the internal C API (pycore_object.h): * _PyObject_GetMethod() * _PyObject_IsAbstract() * _PyObject_NextNotImplemented() * _PyType_CalculateMetaclass() * _PyType_GetDocFromInternalDoc() * _PyType_GetTextSignatureFromInternalDoc() No longer export these functions.
This commit is contained in:
parent
8de8a817ee
commit
1e50112287
2 changed files with 10 additions and 13 deletions
|
|
@ -376,7 +376,11 @@ static inline int _PyType_SUPPORTS_WEAKREFS(PyTypeObject *type) {
|
|||
}
|
||||
|
||||
extern PyObject* _PyType_AllocNoTrack(PyTypeObject *type, Py_ssize_t nitems);
|
||||
PyObject *_PyType_NewManagedObject(PyTypeObject *type);
|
||||
extern PyObject *_PyType_NewManagedObject(PyTypeObject *type);
|
||||
|
||||
extern PyTypeObject* _PyType_CalculateMetaclass(PyTypeObject *, PyObject *);
|
||||
extern PyObject* _PyType_GetDocFromInternalDoc(const char *, const char *);
|
||||
extern PyObject* _PyType_GetTextSignatureFromInternalDoc(const char *, const char *);
|
||||
|
||||
extern int _PyObject_InitializeDict(PyObject *obj);
|
||||
int _PyObject_InitInlineValues(PyObject *obj, PyTypeObject *tp);
|
||||
|
|
@ -432,6 +436,11 @@ extern int _PyObject_IsInstanceDictEmpty(PyObject *);
|
|||
|
||||
PyAPI_FUNC(PyObject *) _PyObject_LookupSpecial(PyObject *, PyObject *);
|
||||
|
||||
extern int _PyObject_IsAbstract(PyObject *);
|
||||
|
||||
extern int _PyObject_GetMethod(PyObject *obj, PyObject *name, PyObject **method);
|
||||
extern PyObject* _PyObject_NextNotImplemented(PyObject *);
|
||||
|
||||
/* C function call trampolines to mitigate bad function pointer casts.
|
||||
*
|
||||
* Typical native ABIs ignore additional arguments or fill in missing
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue