@@ -129,12 +129,12 @@ 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:type: `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:type: `PyObject* `.
138
138
139
139
``u `` (:class: `str `) [const Py_UNICODE \* ]
140
140
Convert a Python Unicode object to a C pointer to a NUL-terminated buffer of
@@ -181,7 +181,7 @@ which disallows mutable objects such as :class:`bytearray`.
181
181
``U `` (:class: `str `) [PyObject \* ]
182
182
Requires that the Python object is a Unicode object, without attempting
183
183
any conversion. Raises :exc: `TypeError ` if the object is not a Unicode
184
- object. The C variable may also be declared as :c:type: `PyObject\ * `.
184
+ object. The C variable may also be declared as :c:type: `PyObject* `.
185
185
186
186
``w* `` (read-write :term: `bytes-like object `) [Py_buffer]
187
187
This format accepts any object which implements the read-write buffer
@@ -194,10 +194,10 @@ which disallows mutable objects such as :class:`bytearray`.
194
194
It only works for encoded data without embedded NUL bytes.
195
195
196
196
This format requires two arguments. The first is only used as input, and
197
- must be a :c:type: `const char\ * ` which points to the name of an encoding as a
197
+ must be a :c:type: `const char* ` which points to the name of an encoding as a
198
198
NUL-terminated string, or ``NULL ``, in which case ``'utf-8' `` encoding is used.
199
199
An exception is raised if the named encoding is not known to Python. The
200
- second argument must be a :c:type: `char\*\ * `; the value of the pointer it
200
+ second argument must be a :c:type: `char* * `; the value of the pointer it
201
201
references will be set to a buffer with the contents of the argument text.
202
202
The text will be encoded in the encoding specified by the first argument.
203
203
@@ -217,10 +217,10 @@ which disallows mutable objects such as :class:`bytearray`.
217
217
characters.
218
218
219
219
It requires three arguments. The first is only used as input, and must be a
220
- :c:type: `const char\ * ` which points to the name of an encoding as a
220
+ :c:type: `const char* ` which points to the name of an encoding as a
221
221
NUL-terminated string, or ``NULL ``, in which case ``'utf-8' `` encoding is used.
222
222
An exception is raised if the named encoding is not known to Python. The
223
- second argument must be a :c:type: `char\*\ * `; the value of the pointer it
223
+ second argument must be a :c:type: `char* * `; the value of the pointer it
224
224
references will be set to a buffer with the contents of the argument text.
225
225
The text will be encoded in the encoding specified by the first argument.
226
226
The third argument must be a pointer to an integer; the referenced integer
@@ -320,7 +320,7 @@ Other objects
320
320
``O! `` (object) [*typeobject *, PyObject \* ]
321
321
Store a Python object in a C object pointer. This is similar to ``O ``, but
322
322
takes two C arguments: the first is the address of a Python type object, the
323
- second is the address of the C variable (of type :c:type: `PyObject\ * `) into which
323
+ second is the address of the C variable (of type :c:type: `PyObject* `) into which
324
324
the object pointer is stored. If the Python object does not have the required
325
325
type, :exc: `TypeError ` is raised.
326
326
@@ -329,13 +329,13 @@ Other objects
329
329
``O& `` (object) [*converter *, *anything *]
330
330
Convert a Python object to a C variable through a *converter * function. This
331
331
takes two arguments: the first is a function, the second is the address of a C
332
- variable (of arbitrary type), converted to :c:type: `void \ * `. The *converter *
332
+ variable (of arbitrary type), converted to :c:type: `void * `. The *converter *
333
333
function in turn is called as follows::
334
334
335
335
status = converter(object, address);
336
336
337
337
where *object * is the Python object to be converted and *address * is the
338
- :c:type: `void\ * ` argument that was passed to the :c:func: `PyArg_Parse\* ` function.
338
+ :c:type: `void* ` argument that was passed to the :c:func: `PyArg_Parse\* ` function.
339
339
The returned *status * should be ``1 `` for a successful conversion and ``0 `` if
340
340
the conversion has failed. When the conversion fails, the *converter * function
341
341
should raise an exception and leave the content of *address * unmodified.
@@ -481,7 +481,7 @@ API Functions
481
481
*args *; it must actually be a tuple. The length of the tuple must be at least
482
482
*min * and no more than *max *; *min * and *max * may be equal. Additional
483
483
arguments must be passed to the function, each of which should be a pointer to a
484
- :c:type: `PyObject\ * ` variable; these will be filled in with the values from
484
+ :c:type: `PyObject* ` variable; these will be filled in with the values from
485
485
*args *; they will contain borrowed references. The variables which correspond
486
486
to optional parameters not given by *args * will not be filled in; these should
487
487
be initialized by the caller. This function returns true on success and false if
@@ -650,8 +650,8 @@ Building values
650
650
651
651
``O&`` (object) [*converter*, *anything*]
652
652
Convert *anything* to a Python object through a *converter* function. The
653
- function is called with *anything* (which should be compatible with :c:type: `void
654
- \* `) as its argument and should return a "new" Python object, or ``NULL`` if an
653
+ function is called with *anything* (which should be compatible with :c:type: `void* `)
654
+ as its argument and should return a "new" Python object, or ``NULL`` if an
655
655
error occurred.
656
656
657
657
``(items)`` (:class: `tuple `) [*matching-items*]
0 commit comments