@@ -17,8 +17,8 @@ of Unicode characters while staying memory efficient. There are special cases
1717for strings where all code points are below 128, 256, or 65536; otherwise, code
1818points must be below 1114112 (which is the full Unicode range).
1919
20- :c:type : `Py_UNICODE* ` and UTF-8 representations are created on demand and cached
21- in the Unicode object. The :c:type : `Py_UNICODE* ` representation is deprecated
20+ :c:expr : `Py_UNICODE* ` and UTF-8 representations are created on demand and cached
21+ in the Unicode object. The :c:expr : `Py_UNICODE* ` representation is deprecated
2222and inefficient.
2323
2424Due to the transition between the old APIs and the new APIs, Unicode objects
@@ -30,7 +30,7 @@ can internally be in two states depending on how they were created:
3030
3131* "legacy" Unicode objects have been created through one of the deprecated
3232 APIs (typically :c:func: `PyUnicode_FromUnicode `) and only bear the
33- :c:type : `Py_UNICODE* ` representation; you will have to call
33+ :c:expr : `Py_UNICODE* ` representation; you will have to call
3434 :c:func: `PyUnicode_READY ` on them before calling any other API.
3535
3636.. note ::
@@ -236,7 +236,7 @@ access to internal read-only data of Unicode objects:
236236 returned buffer is always terminated with an extra null code point. It
237237 may also contain embedded null code points, which would cause the string
238238 to be truncated when used in most C functions. The ``AS_DATA `` form
239- casts the pointer to :c:type : `const char * `. The *o * argument has to be
239+ casts the pointer to :c:expr : `const char * `. The *o * argument has to be
240240 a Unicode object (not checked).
241241
242242 .. versionchanged:: 3.3
@@ -714,7 +714,7 @@ Extension modules can continue using them, as they will not be removed in Python
714714
715715 Return a read-only pointer to the Unicode object's internal
716716 :c:type: `Py_UNICODE ` buffer, or ``NULL `` on error. This will create the
717- :c:type : `Py_UNICODE* ` representation of the object if it is not yet
717+ :c:expr : `Py_UNICODE* ` representation of the object if it is not yet
718718 available. The buffer is always terminated with an extra null code point.
719719 Note that the resulting :c:type: `Py_UNICODE ` string may also contain
720720 embedded null code points, which would cause the string to be truncated when
@@ -730,7 +730,7 @@ Extension modules can continue using them, as they will not be removed in Python
730730
731731 Like :c:func: `PyUnicode_AsUnicode `, but also saves the :c:func: `Py_UNICODE `
732732 array length (excluding the extra null terminator) in *size*.
733- Note that the resulting :c:type :`Py_UNICODE*` string
733+ Note that the resulting :c:expr :`Py_UNICODE*` string
734734 may contain embedded null code points, which would cause the string to be
735735 truncated when used in most C functions.
736736
0 commit comments