@@ -338,6 +338,8 @@ APIs:
338
338
This is the recommended way to allocate a new Unicode object. Objects
339
339
created using this function are not resizable.
340
340
341
+ On error, set an exception and return ``NULL``.
342
+
341
343
.. versionadded:: 3.3
342
344
343
345
@@ -614,6 +616,8 @@ APIs:
614
616
615
617
Return the length of the Unicode object, in code points.
616
618
619
+ On error, set an exception and return ``-1 ``.
620
+
617
621
.. versionadded :: 3.3
618
622
619
623
@@ -657,6 +661,8 @@ APIs:
657
661
not out of bounds, and that the object can be modified safely (i.e. that it
658
662
its reference count is one).
659
663
664
+ Return ``0`` on success, ``-1`` on error with an exception set.
665
+
660
666
.. versionadded:: 3.3
661
667
662
668
@@ -666,6 +672,8 @@ APIs:
666
672
Unicode object and the index is not out of bounds, in contrast to
667
673
:c:func: `PyUnicode_READ_CHAR `, which performs no error checking.
668
674
675
+ Return character on success, ``-1 `` on error with an exception set.
676
+
669
677
.. versionadded :: 3.3
670
678
671
679
@@ -674,6 +682,7 @@ APIs:
674
682
675
683
Return a substring of *unicode *, from character index *start * (included) to
676
684
character index *end* (excluded). Negative indices are not supported.
685
+ On error, set an exception and return ``NULL``.
677
686
678
687
.. versionadded:: 3.3
679
688
0 commit comments