From: Georg Brandl Date: Sat, 27 Dec 2008 19:02:59 +0000 (+0000) Subject: #4682: 'b' is actually unsigned char. X-Git-Tag: v2.7a1~2486 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=50ae9e7e758fec2bed9f5498a293556c01e0f9e9;p=python #4682: 'b' is actually unsigned char. --- diff --git a/Doc/c-api/arg.rst b/Doc/c-api/arg.rst index 5dc28af062..c3da8591cd 100644 --- a/Doc/c-api/arg.rst +++ b/Doc/c-api/arg.rst @@ -136,8 +136,9 @@ variable(s) whose address should be passed. them. Instead, the implementation assumes that the string object uses the encoding passed in as parameter. -``b`` (integer) [char] - Convert a Python integer to a tiny int, stored in a C :ctype:`char`. +``b`` (integer) [unsigned char] + Convert a nonnegative Python integer to an unsigned tiny int, stored in a C + :ctype:`unsigned char`. ``B`` (integer) [unsigned char] Convert a Python integer to a tiny int without overflow checking, stored in a C