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

encukou webhook-mailer at python.org
Thu Jul 29 05:31:08 EDT 2021


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

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

(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 8d4eef87db9fb..cb2438e24b749 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