From e088e313fccf9d0c6b217377c0e10d17987873cf Mon Sep 17 00:00:00 2001 From: Yuki Kobayashi Date: Sun, 23 Feb 2025 11:19:39 +0000 Subject: [PATCH 1/2] gh-130711: Document `PyBaseObject_Type` Fixed gh-130711. --- Doc/c-api/structures.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Doc/c-api/structures.rst b/Doc/c-api/structures.rst index d333df397782e0..30bc60c8e29269 100644 --- a/Doc/c-api/structures.rst +++ b/Doc/c-api/structures.rst @@ -63,6 +63,12 @@ under :ref:`reference counting `. See documentation of :c:type:`PyVarObject` above. +.. c:var:: PyTypeObject PyBaseObject_Type + + The base class of all other classes. It is the same object + as :class:`object` in the Python layer. + + .. c:function:: int Py_Is(PyObject *x, PyObject *y) Test if the *x* object is the *y* object, the same as ``x is y`` in Python. From 3e058a307c119a576ffcee0915b3480f28bae348 Mon Sep 17 00:00:00 2001 From: Yuki Kobayashi Date: Sun, 2 Mar 2025 09:15:24 +0900 Subject: [PATCH 2/2] Update structures.rst Co-authored-by: Peter Bierma --- Doc/c-api/structures.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Doc/c-api/structures.rst b/Doc/c-api/structures.rst index 30bc60c8e29269..987bc167c68d6c 100644 --- a/Doc/c-api/structures.rst +++ b/Doc/c-api/structures.rst @@ -65,8 +65,7 @@ under :ref:`reference counting `. .. c:var:: PyTypeObject PyBaseObject_Type - The base class of all other classes. It is the same object - as :class:`object` in the Python layer. + The base class of all other objects, the same as :class:`object` in Python. .. c:function:: int Py_Is(PyObject *x, PyObject *y)