]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-101100: Fix Sphinx warnings in 'Buffer Object Structures' documentation...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 9 Jun 2026 20:21:51 +0000 (22:21 +0200)
committerGitHub <noreply@github.com>
Tue, 9 Jun 2026 20:21:51 +0000 (22:21 +0200)
(cherry picked from commit a1873300eebe9c634f59592c3333035768f09de9)

Co-authored-by: Christian Zinck <christian.zinck@gmail.com>
Co-authored-by: Stan Ulbrych <stan@python.org>
Doc/c-api/typeobj.rst
Doc/tools/.nitignore

index f22201dc399333b51ff39ed9345d0e985a5242e6..561f95cb90a17786a1db4ecd7a098261b865e603 100644 (file)
@@ -611,9 +611,7 @@ and :c:data:`PyType_Type` effectively act as defaults.)
    argument, and store in the instance's :c:member:`~PyVarObject.ob_size` field.
    Note that the :c:member:`~PyVarObject.ob_size` field may later be used for
    other purposes. For example, :py:type:`int` instances use the bits of
-   :c:member:`~PyVarObject.ob_size` in an implementation-defined
-   way; the underlying storage and its size should be accessed using
-   :c:func:`PyLong_Export`.
+   :c:member:`~PyVarObject.ob_size` in an implementation-defined way.
 
    .. note::
 
@@ -2745,13 +2743,13 @@ Buffer Object Structures
    steps:
 
    (1) Check if the request can be met. If not, raise :exc:`BufferError`,
-       set :c:expr:`view->obj` to ``NULL`` and return ``-1``.
+       set ``view->obj`` to ``NULL`` and return ``-1``.
 
    (2) Fill in the requested fields.
 
    (3) Increment an internal counter for the number of exports.
 
-   (4) Set :c:expr:`view->obj` to *exporter* and increment :c:expr:`view->obj`.
+   (4) Set ``view->obj`` to *exporter* and increment ``view->obj``.
 
    (5) Return ``0``.
 
@@ -2759,10 +2757,10 @@ Buffer Object Structures
    schemes can be used:
 
    * Re-export: Each member of the tree acts as the exporting object and
-     sets :c:expr:`view->obj` to a new reference to itself.
+     sets ``view->obj`` to a new reference to itself.
 
    * Redirect: The buffer request is redirected to the root object of the
-     tree. Here, :c:expr:`view->obj` will be a new reference to the root
+     tree. Here, ``view->obj`` will be a new reference to the root
      object.
 
    The individual fields of *view* are described in section
@@ -2806,7 +2804,7 @@ Buffer Object Structures
    *view* argument.
 
 
-   This function MUST NOT decrement :c:expr:`view->obj`, since that is
+   This function MUST NOT decrement ``view->obj``, since that is
    done automatically in :c:func:`PyBuffer_Release` (this scheme is
    useful for breaking reference cycles).
 
index 39b88f88a61b7c565f93df107e7bb0c820a7125b..c863c99e6dca0c7664206430e5e013f1bd1472ad 100644 (file)
@@ -8,7 +8,6 @@ Doc/c-api/init_config.rst
 Doc/c-api/intro.rst
 Doc/c-api/module.rst
 Doc/c-api/stable.rst
-Doc/c-api/typeobj.rst
 Doc/library/ast.rst
 Doc/library/asyncio-extending.rst
 Doc/library/asyncio-policy.rst