@@ -1697,10 +1697,12 @@ They all return ``NULL`` or ``-1`` if an exception occurs.
16971697 intern-related details, may change between CPython versions.
16981698
16991699
1700+ .. _pyunicodewriter :
1701+
17001702PyUnicodeWriter
17011703^^^^^^^^^^^^^^^
17021704
1703- The :c:type: ` PyUnicodeWriter ` API can be used to create a Python :class: `str `
1705+ The `` PyUnicodeWriter ` ` API can be used to create a Python :class: `str `
17041706object.
17051707
17061708.. versionadded :: 3.14
@@ -1916,7 +1918,7 @@ then filling in its contents.
19161918They are :term: `soft deprecated `: they break the assumption that
19171919strings are immutable, making them hard to use correctly.
19181920
1919- Prefer using the :c:type: `PyUnicodeWriter ` API,
1921+ Prefer using the :ref: `PyUnicodeWriter API < pyunicodewriter >` ,
19201922or one of the ``PyUnicode_From* ``
19211923functions such as :c:func: `PyUnicode_FromStringAndSize `.
19221924
@@ -1971,7 +1973,7 @@ Python does not always check these requirements.
19711973 .. versionadded :: 3.3
19721974
19731975 .. soft-deprecated :: 3.16
1974- Use the :c:type: `PyUnicodeWriter ` API instead.
1976+ Use the :ref: `PyUnicodeWriter API < pyunicodewriter >` instead.
19751977
19761978
19771979.. c :function :: Py_ssize_t PyUnicode_CopyCharacters (PyObject *to, \
@@ -1991,7 +1993,7 @@ Python does not always check these requirements.
19911993 .. versionadded :: 3.3
19921994
19931995 .. soft-deprecated :: 3.16
1994- Use the :c:type: `PyUnicodeWriter ` API instead.
1996+ Use the :ref: `PyUnicodeWriter API < pyunicodewriter >` instead.
19951997
19961998
19971999.. c :function :: int PyUnicode_Resize (PyObject **unicode, Py_ssize_t length);
@@ -2012,7 +2014,7 @@ Python does not always check these requirements.
20122014 See :ref:`pyunicode-new-mutating` for details.
20132015
20142016 .. soft-deprecated:: 3.16
2015- Use the :c:type: `PyUnicodeWriter` API instead.
2017+ Use the :ref: `PyUnicodeWriter API <pyunicodewriter>` instead.
20162018
20172019
20182020.. c:function:: Py_ssize_t PyUnicode_Fill(PyObject *unicode, Py_ssize_t start, \
@@ -2033,7 +2035,7 @@ Python does not always check these requirements.
20332035 .. versionadded :: 3.3
20342036
20352037 .. soft-deprecated :: 3.16
2036- Use the :c:type: `PyUnicodeWriter ` API instead.
2038+ Use the :ref: `PyUnicodeWriter API < pyunicodewriter >` instead.
20372039
20382040
20392041.. c :function :: int PyUnicode_WriteChar (PyObject *unicode, Py_ssize_t index, \
@@ -2053,4 +2055,4 @@ Python does not always check these requirements.
20532055 .. versionadded :: 3.3
20542056
20552057 .. soft-deprecated :: 3.16
2056- Use the :c:type: `PyUnicodeWriter ` API instead.
2058+ Use the :ref: `PyUnicodeWriter API < pyunicodewriter >` instead.
0 commit comments