@@ -2356,24 +2356,24 @@ Buffer Object Structures
2356
2356
steps:
2357
2357
2358
2358
(1) Check if the request can be met. If not, raise :c:data: `PyExc_BufferError `,
2359
- set :c:data : `view->obj ` to ``NULL `` and return ``-1 ``.
2359
+ set :c:expr : `view->obj ` to ``NULL `` and return ``-1 ``.
2360
2360
2361
2361
(2) Fill in the requested fields.
2362
2362
2363
2363
(3) Increment an internal counter for the number of exports.
2364
2364
2365
- (4) Set :c:data : `view->obj ` to *exporter * and increment :c:data : `view->obj `.
2365
+ (4) Set :c:expr : `view->obj ` to *exporter * and increment :c:expr : `view->obj `.
2366
2366
2367
2367
(5) Return ``0 ``.
2368
2368
2369
2369
If *exporter * is part of a chain or tree of buffer providers, two main
2370
2370
schemes can be used:
2371
2371
2372
2372
* Re-export: Each member of the tree acts as the exporting object and
2373
- sets :c:data : `view->obj ` to a new reference to itself.
2373
+ sets :c:expr : `view->obj ` to a new reference to itself.
2374
2374
2375
2375
* Redirect: The buffer request is redirected to the root object of the
2376
- tree. Here, :c:data : `view->obj ` will be a new reference to the root
2376
+ tree. Here, :c:expr : `view->obj ` will be a new reference to the root
2377
2377
object.
2378
2378
2379
2379
The individual fields of *view * are described in section
@@ -2415,7 +2415,7 @@ Buffer Object Structures
2415
2415
*view * argument.
2416
2416
2417
2417
2418
- This function MUST NOT decrement :c:data : `view->obj `, since that is
2418
+ This function MUST NOT decrement :c:expr : `view->obj `, since that is
2419
2419
done automatically in :c:func: `PyBuffer_Release ` (this scheme is
2420
2420
useful for breaking reference cycles).
2421
2421
0 commit comments