diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2021-06-08 11:24:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-08 11:24:40 (GMT) |
commit | 6d518bb3a11f9b16098f45b21a13ebe8f537f045 (patch) | |
tree | ba4fc829f99c71557eb47e165e198f4ad525ec85 /Doc/c-api | |
parent | d56e700d6c7ebf1a424260d0e4f0c291d1f5b3af (diff) | |
download | cpython-6d518bb3a11f9b16098f45b21a13ebe8f537f045.zip cpython-6d518bb3a11f9b16098f45b21a13ebe8f537f045.tar.gz cpython-6d518bb3a11f9b16098f45b21a13ebe8f537f045.tar.bz2 |
bpo-44348: Revert "bpo-39573: Py_TYPE becomes a static inline function (GH-26493)" (GH-26596)
This reverts commit f3fa63ec75fdbb4a08a10957a5c631bf0c4a5970 as is
causing crashes in some Windows tests in the buildbots.
Diffstat (limited to 'Doc/c-api')
-rw-r--r-- | Doc/c-api/structures.rst | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/Doc/c-api/structures.rst b/Doc/c-api/structures.rst index 1a6e14e..20d5485 100644 --- a/Doc/c-api/structures.rst +++ b/Doc/c-api/structures.rst @@ -99,10 +99,7 @@ the definition of all other Python objects. Return a :term:`borrowed reference`. - Use the :c:func:`Py_SET_TYPE` function to set an object type. - - .. versionchanged:: 3.11 - :c:func:`Py_TYPE()` is changed to an inline static function. + The :c:func:`Py_SET_TYPE` function must be used to set an object type. .. c:function:: int Py_IS_TYPE(PyObject *o, PyTypeObject *type) @@ -124,10 +121,9 @@ the definition of all other Python objects. Get the reference count of the Python object *o*. - Use the :c:func:`Py_SET_REFCNT()` function to set an object reference count. - .. versionchanged:: 3.10 :c:func:`Py_REFCNT()` is changed to the inline static function. + Use :c:func:`Py_SET_REFCNT()` to set an object reference count. .. c:function:: void Py_SET_REFCNT(PyObject *o, Py_ssize_t refcnt) @@ -141,10 +137,7 @@ the definition of all other Python objects. Get the size of the Python object *o*. - Use the :c:func:`Py_SET_SIZE` function to set an object size. - - .. versionchanged:: 3.11 - :c:func:`Py_SIZE()` is changed to an inline static function. + The :c:func:`Py_SET_SIZE` function must be used to set an object size. .. c:function:: void Py_SET_SIZE(PyVarObject *o, Py_ssize_t size) |