Skip to content

Commit 95289bf

Browse files
[3.10] gh-93738: Documentation C syntax (:c:data:view->obj -> :c:expr:view->obj) (GH-97773) (#97868)
:c:data:`view->obj` -> :c:expr:`view->obj` (cherry picked from commit fa59bda) Co-authored-by: Adam Turner <[email protected]>
1 parent 994eaa3 commit 95289bf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Doc/c-api/typeobj.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -2327,24 +2327,24 @@ Buffer Object Structures
23272327
steps:
23282328

23292329
(1) Check if the request can be met. If not, raise :c:data:`PyExc_BufferError`,
2330-
set :c:data:`view->obj` to ``NULL`` and return ``-1``.
2330+
set :c:expr:`view->obj` to ``NULL`` and return ``-1``.
23312331

23322332
(2) Fill in the requested fields.
23332333

23342334
(3) Increment an internal counter for the number of exports.
23352335

2336-
(4) Set :c:data:`view->obj` to *exporter* and increment :c:data:`view->obj`.
2336+
(4) Set :c:expr:`view->obj` to *exporter* and increment :c:expr:`view->obj`.
23372337

23382338
(5) Return ``0``.
23392339

23402340
If *exporter* is part of a chain or tree of buffer providers, two main
23412341
schemes can be used:
23422342

23432343
* Re-export: Each member of the tree acts as the exporting object and
2344-
sets :c:data:`view->obj` to a new reference to itself.
2344+
sets :c:expr:`view->obj` to a new reference to itself.
23452345

23462346
* Redirect: The buffer request is redirected to the root object of the
2347-
tree. Here, :c:data:`view->obj` will be a new reference to the root
2347+
tree. Here, :c:expr:`view->obj` will be a new reference to the root
23482348
object.
23492349

23502350
The individual fields of *view* are described in section
@@ -2386,7 +2386,7 @@ Buffer Object Structures
23862386
*view* argument.
23872387

23882388

2389-
This function MUST NOT decrement :c:data:`view->obj`, since that is
2389+
This function MUST NOT decrement :c:expr:`view->obj`, since that is
23902390
done automatically in :c:func:`PyBuffer_Release` (this scheme is
23912391
useful for breaking reference cycles).
23922392

0 commit comments

Comments
 (0)