[Python-checkins] CVS: python/dist/src/Doc/ext extending.tex,1.2,1.3
Tim Peters
tim_one@users.sourceforge.net
Sat, 29 Sep 2001 22:09:38 -0700
Update of /cvsroot/python/python/dist/src/Doc/ext
In directory usw-pr-cvs1:/tmp/cvs-serv21648/python/Doc/ext
Modified Files:
extending.tex
Log Message:
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.
Index: extending.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ext/extending.tex,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** extending.tex 2001/09/06 16:30:30 1.2
--- extending.tex 2001/09/30 05:09:36 1.3
***************
*** 744,747 ****
--- 744,752 ----
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