summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-12-27 19:02:59 (GMT)
committerGeorg Brandl <georg@python.org>2008-12-27 19:02:59 (GMT)
commit50ae9e7e758fec2bed9f5498a293556c01e0f9e9 (patch)
treea267d7e212b2d92eadb6b412ce66a61f64876ece
parent348fa7968ba8aa972bf418f1528f9d089f892f34 (diff)
downloadcpython-50ae9e7e758fec2bed9f5498a293556c01e0f9e9.zip
cpython-50ae9e7e758fec2bed9f5498a293556c01e0f9e9.tar.gz
cpython-50ae9e7e758fec2bed9f5498a293556c01e0f9e9.tar.bz2
#4682: 'b' is actually unsigned char.
-rw-r--r--Doc/c-api/arg.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/c-api/arg.rst b/Doc/c-api/arg.rst
index 5dc28af..c3da859 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