]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-43565: Document PyUnicode_KIND's return type as an unsigned int (GH-25724) (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 29 Jul 2021 09:33:16 +0000 (02:33 -0700)
committerGitHub <noreply@github.com>
Thu, 29 Jul 2021 09:33:16 +0000 (11:33 +0200)
(cherry picked from commit 47fd4726a2ce8599cc397ddeae40f70eb471e868)

Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
Doc/c-api/unicode.rst

index 8b1ed0810fb0cd48a5c49d54f90da83857a74799..8e237046ecd256240118f7c330123e0aecaec908 100644 (file)
@@ -149,7 +149,7 @@ access internal read-only data of Unicode objects:
       ``PyUnicode_WCHAR_KIND`` is deprecated.
 
 
-.. c:function:: int PyUnicode_KIND(PyObject *o)
+.. c:function:: unsigned int PyUnicode_KIND(PyObject *o)
 
    Return one of the PyUnicode kind constants (see above) that indicate how many
    bytes per character this Unicode object uses to store its data.  *o* has to