diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-03-01 05:47:11 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-03-01 05:47:11 (GMT) |
commit | 3b1975407945f2f1f2d90e3611417da91808b420 (patch) | |
tree | 399448b686b0c9cbed46f3972c4618aa294447fb /Doc/api/utilities.tex | |
parent | 8b87a0b5fcc3db361d720c365273114eef5d9467 (diff) | |
download | cpython-3b1975407945f2f1f2d90e3611417da91808b420.zip cpython-3b1975407945f2f1f2d90e3611417da91808b420.tar.gz cpython-3b1975407945f2f1f2d90e3611417da91808b420.tar.bz2 |
Document new Py_ssize_t API.
Diffstat (limited to 'Doc/api/utilities.tex')
-rw-r--r-- | Doc/api/utilities.tex | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/api/utilities.tex b/Doc/api/utilities.tex index 094cbf3..5aecbc3 100644 --- a/Doc/api/utilities.tex +++ b/Doc/api/utilities.tex @@ -553,6 +553,10 @@ whose address should be passed. platforms that support \ctype{unsigned long long} (or \ctype{unsigned _int64} on Windows). \versionadded{2.3} + \item[\samp{n} (integer) {[Py_ssize_t]}] + Convert a Python integer or long integer to a C \ctype{Py_ssize_t}. + \versionadded{2.5} + \item[\samp{c} (string of length 1) {[char]}] Convert a Python character, represented as a string of length 1, to a C \ctype{char}. @@ -866,6 +870,10 @@ PyArg_ParseTuple(args, "O|O:ref", &object, &callback) Convert a C \ctype{unsigned long long} to a Python long integer object. Only available on platforms that support \ctype{unsigned long long}. + \item[\samp{n} (int) {[Py_ssize_t]}] + Convert a C \ctype{Py_ssize_t) to a Python integer or long integer. + \versionadded{2.5} + \item[\samp{c} (string of length 1) {[char]}] Convert a C \ctype{int} representing a character to a Python string of length 1. |