@@ -2327,24 +2327,24 @@ Buffer Object Structures
2327
2327
steps:
2328
2328
2329
2329
(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 ``.
2331
2331
2332
2332
(2) Fill in the requested fields.
2333
2333
2334
2334
(3) Increment an internal counter for the number of exports.
2335
2335
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 `.
2337
2337
2338
2338
(5) Return ``0 ``.
2339
2339
2340
2340
If *exporter * is part of a chain or tree of buffer providers, two main
2341
2341
schemes can be used:
2342
2342
2343
2343
* 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.
2345
2345
2346
2346
* 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
2348
2348
object.
2349
2349
2350
2350
The individual fields of *view * are described in section
@@ -2386,7 +2386,7 @@ Buffer Object Structures
2386
2386
*view * argument.
2387
2387
2388
2388
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
2390
2390
done automatically in :c:func: `PyBuffer_Release ` (this scheme is
2391
2391
useful for breaking reference cycles).
2392
2392
0 commit comments