From: Ammar Askar Date: Thu, 29 Jul 2021 09:10:03 +0000 (-0400) Subject: bpo-43565: Document PyUnicode_KIND's return type as an unsigned int (GH-25724) X-Git-Tag: v3.11.0a1~535 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=47fd4726a2ce8599cc397ddeae40f70eb471e868;p=thirdparty%2FPython%2Fcpython.git bpo-43565: Document PyUnicode_KIND's return type as an unsigned int (GH-25724) --- diff --git a/Doc/c-api/unicode.rst b/Doc/c-api/unicode.rst index ddc2346e92dc..6cb453ef0107 100644 --- a/Doc/c-api/unicode.rst +++ b/Doc/c-api/unicode.rst @@ -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