@@ -129,17 +129,17 @@ which disallows mutable objects such as :class:`bytearray`.
129
129
``S `` (:class: `bytes `) [PyBytesObject \* ]
130
130
Requires that the Python object is a :class: `bytes ` object, without
131
131
attempting any conversion. Raises :exc: `TypeError ` if the object is not
132
- a bytes object. The C variable may also be declared as :c:type : `PyObject* `.
132
+ a bytes object. The C variable may also be declared as :c:expr : `PyObject* `.
133
133
134
134
``Y `` (:class: `bytearray `) [PyByteArrayObject \* ]
135
135
Requires that the Python object is a :class: `bytearray ` object, without
136
136
attempting any conversion. Raises :exc: `TypeError ` if the object is not
137
- a :class: `bytearray ` object. The C variable may also be declared as :c:type : `PyObject* `.
137
+ a :class: `bytearray ` object. The C variable may also be declared as :c:expr : `PyObject* `.
138
138
139
139
``U `` (:class: `str `) [PyObject \* ]
140
140
Requires that the Python object is a Unicode object, without attempting
141
141
any conversion. Raises :exc: `TypeError ` if the object is not a Unicode
142
- object. The C variable may also be declared as :c:type : `PyObject* `.
142
+ object. The C variable may also be declared as :c:expr : `PyObject* `.
143
143
144
144
``w* `` (read-write :term: `bytes-like object `) [Py_buffer]
145
145
This format accepts any object which implements the read-write buffer
@@ -283,7 +283,7 @@ Other objects
283
283
``O! `` (object) [*typeobject *, PyObject \* ]
284
284
Store a Python object in a C object pointer. This is similar to ``O ``, but
285
285
takes two C arguments: the first is the address of a Python type object, the
286
- second is the address of the C variable (of type :c:type : `PyObject* `) into which
286
+ second is the address of the C variable (of type :c:expr : `PyObject* `) into which
287
287
the object pointer is stored. If the Python object does not have the required
288
288
type, :exc: `TypeError ` is raised.
289
289
@@ -444,7 +444,7 @@ API Functions
444
444
*args *; it must actually be a tuple. The length of the tuple must be at least
445
445
*min * and no more than *max *; *min * and *max * may be equal. Additional
446
446
arguments must be passed to the function, each of which should be a pointer to a
447
- :c:type : `PyObject* ` variable; these will be filled in with the values from
447
+ :c:expr : `PyObject* ` variable; these will be filled in with the values from
448
448
*args *; they will contain :term: `borrowed references <borrowed reference> `.
449
449
The variables which correspond
450
450
to optional parameters not given by *args * will not be filled in; these should
0 commit comments