summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/arg.rst
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-04-03 22:18:11 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-04-03 22:18:11 (GMT)
commita921fb0f66e082a61277e97e1326a26fa59be3f0 (patch)
tree5f9897b1acee7cbf88c253003e62fc7f79824aae /Doc/c-api/arg.rst
parenta3b1ac8dca5afa01d9d542e125052014a9af56eb (diff)
downloadcpython-a921fb0f66e082a61277e97e1326a26fa59be3f0.zip
cpython-a921fb0f66e082a61277e97e1326a26fa59be3f0.tar.gz
cpython-a921fb0f66e082a61277e97e1326a26fa59be3f0.tar.bz2
Py_BuildValue's 'c' code should use byte strings #5666
Diffstat (limited to 'Doc/c-api/arg.rst')
-rw-r--r--Doc/c-api/arg.rst10
1 files changed, 7 insertions, 3 deletions
diff --git a/Doc/c-api/arg.rst b/Doc/c-api/arg.rst
index a554bc9..8a40f22 100644
--- a/Doc/c-api/arg.rst
+++ b/Doc/c-api/arg.rst
@@ -212,7 +212,7 @@ variable(s) whose address should be passed.
:ctype:`char`.
``C`` (string of length 1) [int]
- Covert a Python character, represented as a unicode string of length 1, to a
+ Convert a Python character, represented as a unicode string of length 1, to a
C :ctype:`int`.
``f`` (float) [float]
@@ -511,8 +511,12 @@ and the following format units are left untouched.
Convert a C :ctype:`Py_ssize_t` to a Python integer.
``c`` (string of length 1) [char]
- Convert a C :ctype:`int` representing a character to a Python string of length
- 1.
+ Convert a C :ctype:`int` representing a byte to a Python byte string of
+ length 1.
+
+ ``C`` (string of length 1) [int]
+ Convert a C :ctype:`int` representing a character to Python unicode
+ string of length 1.
``d`` (float) [double]
Convert a C :ctype:`double` to a Python floating point number.