Skip to content

Commit 9b50786

Browse files
eric-wieserserhiy-storchaka
authored andcommitted
Fix references within buffer protocol docs (#1016)
1 parent d7564e5 commit 9b50786

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/c-api/typeobj.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1377,23 +1377,23 @@ member in the :c:type:`PyTypeObject` structure should be *NULL*. Otherwise, the
13771377
Structure used to hold the function pointers which define an implementation of
13781378
the buffer protocol.
13791379

1380-
The first slot is :attr:`bf_getreadbuffer`, of type :c:type:`getreadbufferproc`.
1380+
The first slot is :attr:`bf_getreadbuffer`, of type :c:type:`readbufferproc`.
13811381
If this slot is *NULL*, then the object does not support reading from the
13821382
internal data. This is non-sensical, so implementors should fill this in, but
13831383
callers should test that the slot contains a non-*NULL* value.
13841384

13851385
The next slot is :attr:`bf_getwritebuffer` having type
1386-
:c:type:`getwritebufferproc`. This slot may be *NULL* if the object does not
1386+
:c:type:`writebufferproc`. This slot may be *NULL* if the object does not
13871387
allow writing into its returned buffers.
13881388

1389-
The third slot is :attr:`bf_getsegcount`, with type :c:type:`getsegcountproc`.
1389+
The third slot is :attr:`bf_getsegcount`, with type :c:type:`segcountproc`.
13901390
This slot must not be *NULL* and is used to inform the caller how many segments
13911391
the object contains. Simple objects such as :c:type:`PyString_Type` and
13921392
:c:type:`PyBuffer_Type` objects contain a single segment.
13931393

13941394
.. index:: single: PyType_HasFeature()
13951395

1396-
The last slot is :attr:`bf_getcharbuffer`, of type :c:type:`getcharbufferproc`.
1396+
The last slot is :attr:`bf_getcharbuffer`, of type :c:type:`charbufferproc`.
13971397
This slot will only be present if the :const:`Py_TPFLAGS_HAVE_GETCHARBUFFER`
13981398
flag is present in the :c:member:`~PyTypeObject.tp_flags` field of the object's
13991399
:c:type:`PyTypeObject`. Before using this slot, the caller should test whether it

0 commit comments

Comments
 (0)