@@ -2321,24 +2321,24 @@ Buffer Object Structures
2321
2321
steps:
2322
2322
2323
2323
(1) Check if the request can be met. If not, raise :c:data: `PyExc_BufferError `,
2324
- set :c:data : `view->obj ` to ``NULL `` and return ``-1 ``.
2324
+ set :c:expr : `view->obj ` to ``NULL `` and return ``-1 ``.
2325
2325
2326
2326
(2) Fill in the requested fields.
2327
2327
2328
2328
(3) Increment an internal counter for the number of exports.
2329
2329
2330
- (4) Set :c:data : `view->obj ` to *exporter * and increment :c:data : `view->obj `.
2330
+ (4) Set :c:expr : `view->obj ` to *exporter * and increment :c:expr : `view->obj `.
2331
2331
2332
2332
(5) Return ``0 ``.
2333
2333
2334
2334
If *exporter * is part of a chain or tree of buffer providers, two main
2335
2335
schemes can be used:
2336
2336
2337
2337
* Re-export: Each member of the tree acts as the exporting object and
2338
- sets :c:data : `view->obj ` to a new reference to itself.
2338
+ sets :c:expr : `view->obj ` to a new reference to itself.
2339
2339
2340
2340
* Redirect: The buffer request is redirected to the root object of the
2341
- tree. Here, :c:data : `view->obj ` will be a new reference to the root
2341
+ tree. Here, :c:expr : `view->obj ` will be a new reference to the root
2342
2342
object.
2343
2343
2344
2344
The individual fields of *view * are described in section
@@ -2380,7 +2380,7 @@ Buffer Object Structures
2380
2380
*view * argument.
2381
2381
2382
2382
2383
- This function MUST NOT decrement :c:data : `view->obj `, since that is
2383
+ This function MUST NOT decrement :c:expr : `view->obj `, since that is
2384
2384
done automatically in :c:func: `PyBuffer_Release ` (this scheme is
2385
2385
useful for breaking reference cycles).
2386
2386
0 commit comments