summaryrefslogtreecommitdiffstats
path: root/Doc/ext/extending.tex
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-09-30 05:09:37 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-09-30 05:09:37 (GMT)
commitd38b1c74f3f28a3f9a73c142d9be83425adaa6e1 (patch)
treed3b062c6eaa6d7e6c5be8cfdaeb71d7470563a68 /Doc/ext/extending.tex
parentac1af8093ef39028c993c5b343c557d94528fd25 (diff)
downloadcpython-d38b1c74f3f28a3f9a73c142d9be83425adaa6e1.zip
cpython-d38b1c74f3f28a3f9a73c142d9be83425adaa6e1.tar.gz
cpython-d38b1c74f3f28a3f9a73c142d9be83425adaa6e1.tar.bz2
SF [#466125] PyLong_AsLongLong works for any integer.
Generalize PyLong_AsLongLong to accept int arguments too. The real point is so that PyArg_ParseTuple's 'L' code does too. That code was undocumented (AFAICT), so documented it.
Diffstat (limited to 'Doc/ext/extending.tex')
-rw-r--r--Doc/ext/extending.tex5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/ext/extending.tex b/Doc/ext/extending.tex
index d3661ab..87d3736 100644
--- a/Doc/ext/extending.tex
+++ b/Doc/ext/extending.tex
@@ -743,6 +743,11 @@ Convert a Python integer to a plain C \ctype{int}.
\item[\samp{l} (integer) {[long int]}]
Convert a Python integer to a C \ctype{long int}.
+\item[\samp{L} (integer) {[LONG_LONG]}]
+Convert a Python integer to a C \ctype{long long}. This format is only
+available on platforms that support \ctype{long long} (or \ctype{_int64}
+on Windows).
+
\item[\samp{c} (string of length 1) {[char]}]
Convert a Python character, represented as a string of length 1, to a
C \ctype{char}.