@@ -168,8 +168,8 @@ access to internal read-only data of Unicode objects:
168168 The function performs no checks for any of its requirements,
169169 and is intended for usage in loops.
170170
171- While str objects are usually immutable in Python, this special C API allows
172- mutating a fresh str object if the string was not “ used” yet.
171+ While :class: ` str ` objects are usually immutable in Python, this special C API allows
172+ mutating a fresh :class: ` str ` object if the string has not been " used" yet.
173173
174174 .. versionadded :: 3.3
175175
@@ -413,9 +413,9 @@ APIs:
413413 using the :c:type: `PyUnicodeWriter ` API, or one of the ``PyUnicode_From* ``
414414 functions below.
415415
416- While str objects are usually immutable in Python, this special C API
417- returns a str object which can be mutated; except if *size * is zero in which
418- case it returns the immutable empty string.
416+ While :class: ` str ` objects are usually immutable in Python, this special C API
417+ returns a :class: ` str ` object that can be mutated, except if *size * is zero, in which
418+ case it returns the immutable empty string constant .
419419
420420 .. versionadded :: 3.3
421421
@@ -766,8 +766,8 @@ APIs:
766766 possible. Returns ``-1 `` and sets an exception on error, otherwise returns
767767 the number of copied characters.
768768
769- While str objects are usually immutable in Python, this special C API allows
770- mutating a fresh str object if the string was not “ used” yet.
769+ While :class: ` str ` objects are usually immutable in Python, this special C API allows
770+ mutating a fresh :class: ` str ` object if the string has not been " used" yet.
771771
772772 See :c:func: `PyUnicode_New ` for details.
773773
@@ -791,10 +791,10 @@ APIs:
791791 The function doesn't check string content, the result may not be a
792792 string in canonical representation.
793793
794- While str objects are usually immutable in Python, this special C API
795- can resize a str object in-place if the string was not “ used” yet.
796- It returns a str object which can be mutated; except if *size* is zero in
797- which case it returns the immutable empty string.
794+ While :class:` str` objects are usually immutable in Python, this special C API
795+ can resize a :class:` str` object in-place if the string has not been " used" yet.
796+ It returns a :class:` str` object which can be mutated, except if *size* is zero, in
797+ which case it returns the immutable empty string constant .
798798
799799 .. soft-deprecated:: next
800800 Use the :c:type:`PyUnicodeWriter` API instead.
@@ -812,8 +812,8 @@ APIs:
812812 Return the number of written characters, or return ``-1 `` and raise an
813813 exception on error.
814814
815- While str objects are usually immutable in Python, this special C API allows
816- mutating a fresh str object if the string was not “ used” yet.
815+ While :class: ` str ` objects are usually immutable in Python, this special C API allows
816+ mutating a fresh :class: ` str ` object if the string has not been " used" yet.
817817
818818 See :c:func: `PyUnicode_New ` for details.
819819
@@ -834,8 +834,8 @@ APIs:
834834 See :c:func: `PyUnicode_WRITE ` for a version that skips these checks,
835835 making them your responsibility.
836836
837- While str objects are usually immutable in Python, this special C API allows
838- mutating a fresh str object if the string was not “ used” yet.
837+ While :class: ` str ` objects are usually immutable in Python, this special C API allows
838+ mutating a fresh :class: ` str ` object if the string has not been " used" yet.
839839
840840 See :c:func: `PyUnicode_New ` for details.
841841
0 commit comments