@@ -138,7 +138,7 @@ which disallows mutable objects such as :class:`bytearray`.
138138 attempting any conversion. Raises :exc: `TypeError ` if the object is not
139139 a :class: `bytearray ` object. The C variable may also be declared as :c:type: `PyObject\* `.
140140
141- ``u `` (:class: `str `) [Py_UNICODE \* ]
141+ ``u `` (:class: `str `) [const Py_UNICODE \* ]
142142 Convert a Python Unicode object to a C pointer to a NUL-terminated buffer of
143143 Unicode characters. You must pass the address of a :c:type: `Py_UNICODE `
144144 pointer variable, which will be filled with the pointer to an existing
@@ -151,16 +151,16 @@ which disallows mutable objects such as :class:`bytearray`.
151151 Previously, :exc: `TypeError ` was raised when embedded null code points
152152 were encountered in the Python string.
153153
154- ``u# `` (:class: `str `) [Py_UNICODE \* , int]
154+ ``u# `` (:class: `str `) [const Py_UNICODE \* , int]
155155 This variant on ``u `` stores into two C variables, the first one a pointer to a
156156 Unicode data buffer, the second one its length. This variant allows
157157 null code points.
158158
159- ``Z `` (:class: `str ` or ``None ``) [Py_UNICODE \* ]
159+ ``Z `` (:class: `str ` or ``None ``) [const Py_UNICODE \* ]
160160 Like ``u ``, but the Python object may also be ``None ``, in which case the
161161 :c:type: `Py_UNICODE ` pointer is set to *NULL *.
162162
163- ``Z# `` (:class: `str ` or ``None ``) [Py_UNICODE \* , int]
163+ ``Z# `` (:class: `str ` or ``None ``) [const Py_UNICODE \* , int]
164164 Like ``u# ``, but the Python object may also be ``None ``, in which case the
165165 :c:type: `Py_UNICODE ` pointer is set to *NULL *.
166166
@@ -529,42 +529,42 @@ Building values
529529 not within format units such as ``s# ``). This can be used to make long format
530530 strings a tad more readable.
531531
532- ``s`` (:class: `str ` or ``None ``) [char \*]
532+ ``s`` (:class: `str ` or ``None ``) [const char \*]
533533 Convert a null-terminated C string to a Python :class:`str` object using ``'utf-8'``
534534 encoding. If the C string pointer is *NULL*, ``None`` is used.
535535
536- ``s#`` (:class:`str` or ``None``) [char \*, int ]
536+ ``s#`` (:class:`str` or ``None``) [const char \*, int ]
537537 Convert a C string and its length to a Python :class:`str` object using ``' utf-8' ``
538538 encoding. If the C string pointer is *NULL *, the length is ignored and
539539 ``None`` is returned.
540540
541- ``y `` (:class: `bytes `) [char \*]
541+ ``y `` (:class: `bytes `) [const char \*]
542542 This converts a C string to a Python :class:`bytes` object. If the C
543543 string pointer is *NULL*, ``None`` is returned.
544544
545- ``y#`` (:class:`bytes`) [char \*, int ]
545+ ``y#`` (:class:`bytes`) [const char \*, int ]
546546 This converts a C string and its lengths to a Python object. If the C
547547 string pointer is *NULL *, ``None`` is returned.
548548
549- ``z `` (:class: `str ` or ``None ``) [char \*]
549+ ``z `` (:class: `str ` or ``None ``) [const char \*]
550550 Same as ``s``.
551551
552- ``z#`` (:class:`str` or ``None``) [char \*, int ]
552+ ``z#`` (:class:`str` or ``None``) [const char \*, int ]
553553 Same as ``s#``.
554554
555- ``u `` (:class: `str `) [Py_UNICODE \*]
555+ ``u `` (:class: `str `) [const Py_UNICODE \*]
556556 Convert a null-terminated buffer of Unicode (UCS-2 or UCS-4) data to a Python
557557 Unicode object. If the Unicode buffer pointer is *NULL*, ``None`` is returned.
558558
559- ``u#`` (:class:`str`) [Py_UNICODE \*, int ]
559+ ``u#`` (:class:`str`) [const Py_UNICODE \*, int ]
560560 Convert a Unicode (UCS-2 or UCS-4) data buffer and its length to a Python
561561 Unicode object. If the Unicode buffer pointer is *NULL*, the length is ignored
562562 and ``None`` is returned.
563563
564- ``U`` (:class: `str ` or ``None ``) [char \*]
564+ ``U`` (:class: `str ` or ``None ``) [const char \*]
565565 Same as ``s``.
566566
567- ``U#`` (:class:`str` or ``None``) [char \*, int ]
567+ ``U#`` (:class:`str` or ``None``) [const char \*, int ]
568568 Same as ``s#``.
569569
570570 ``i `` (:class: `int `) [int]
0 commit comments