@@ -345,6 +345,8 @@ APIs:
345
345
This is the recommended way to allocate a new Unicode object. Objects
346
346
created using this function are not resizable.
347
347
348
+ On error, set an exception and return ``NULL``.
349
+
348
350
.. versionadded:: 3.3
349
351
350
352
@@ -598,6 +600,8 @@ APIs:
598
600
599
601
Return the length of the Unicode object, in code points.
600
602
603
+ On error, set an exception and return ``-1 ``.
604
+
601
605
.. versionadded :: 3.3
602
606
603
607
@@ -641,6 +645,8 @@ APIs:
641
645
not out of bounds, and that the object can be modified safely (i.e. that it
642
646
its reference count is one).
643
647
648
+ Return ``0`` on success, ``-1`` on error with an exception set.
649
+
644
650
.. versionadded:: 3.3
645
651
646
652
@@ -650,6 +656,8 @@ APIs:
650
656
Unicode object and the index is not out of bounds, in contrast to
651
657
:c:func: `PyUnicode_READ_CHAR `, which performs no error checking.
652
658
659
+ Return character on success, ``-1 `` on error with an exception set.
660
+
653
661
.. versionadded :: 3.3
654
662
655
663
@@ -658,6 +666,7 @@ APIs:
658
666
659
667
Return a substring of *unicode *, from character index *start * (included) to
660
668
character index *end* (excluded). Negative indices are not supported.
669
+ On error, set an exception and return ``NULL``.
661
670
662
671
.. versionadded:: 3.3
663
672
0 commit comments