[Python-checkins] bpo-43565: Document PyUnicode_KIND's return type as an unsigned int (GH-25724) (GH-27440)

encukou webhook-mailer at python.org
Thu Jul 29 05:33:21 EDT 2021


https://github.com/python/cpython/commit/7922546859e746a0f20f53bc80ce0581b72030aa
commit: 7922546859e746a0f20f53bc80ce0581b72030aa
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: encukou <encukou at gmail.com>
date: 2021-07-29T11:33:16+02:00
summary:

bpo-43565: Document PyUnicode_KIND's return type as an unsigned int (GH-25724) (GH-27440)

(cherry picked from commit 47fd4726a2ce8599cc397ddeae40f70eb471e868)

Co-authored-by: Ammar Askar <ammar at ammaraskar.com>

files:
M Doc/c-api/unicode.rst

diff --git a/Doc/c-api/unicode.rst b/Doc/c-api/unicode.rst
index 8b1ed0810fb0c..8e237046ecd25 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



More information about the Python-checkins mailing list