summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-04-02 00:33:55 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-04-02 00:33:55 (GMT)
commit7fe9853596189cb250f895800edfa19147bbb0f1 (patch)
tree5907e37a8dba72265b68f0dd59f9d4368927ac90 /Doc/c-api
parent605b9d9fe8509f9da305b2ef7a7774419e47094d (diff)
downloadcpython-7fe9853596189cb250f895800edfa19147bbb0f1.zip
cpython-7fe9853596189cb250f895800edfa19147bbb0f1.tar.gz
cpython-7fe9853596189cb250f895800edfa19147bbb0f1.tar.bz2
make 'c' only accept bytes and 'C' only unicode #5499
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/arg.rst6
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/c-api/arg.rst b/Doc/c-api/arg.rst
index dfedf97..a554bc9 100644
--- a/Doc/c-api/arg.rst
+++ b/Doc/c-api/arg.rst
@@ -208,9 +208,13 @@ variable(s) whose address should be passed.
Convert a Python integer to a C :ctype:`Py_ssize_t`.
``c`` (string of length 1) [char]
- Convert a Python character, represented as a string of length 1, to a C
+ Convert a Python character, represented as a byte string of length 1, to a C
:ctype:`char`.
+``C`` (string of length 1) [int]
+ Covert a Python character, represented as a unicode string of length 1, to a
+ C :ctype:`int`.
+
``f`` (float) [float]
Convert a Python floating point number to a C :ctype:`float`.