]> granicus.if.org Git - python/commitdiff
#4682: 'b' is actually unsigned char.
authorGeorg Brandl <georg@python.org>
Sat, 27 Dec 2008 19:02:59 +0000 (19:02 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 27 Dec 2008 19:02:59 +0000 (19:02 +0000)
Doc/c-api/arg.rst

index 5dc28af062f1bbf56940b06dfcae47009f6d8c5f..c3da8591cda6c58c4ab17025a18ee9b3c20c8a7f 100644 (file)
@@ -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