diff options
author | Thomas Heller <theller@ctypes.org> | 2003-04-23 19:27:35 (GMT) |
---|---|---|
committer | Thomas Heller <theller@ctypes.org> | 2003-04-23 19:27:35 (GMT) |
commit | 42a1172cf4f35b8e2d9e8693f9ff4b19c2fbc925 (patch) | |
tree | 9b34c6827922ef54aa84eba490d59739e845e5c8 /Doc/api/utilities.tex | |
parent | 1d877863050c791aa35cc4659f8134349480f57d (diff) | |
download | cpython-42a1172cf4f35b8e2d9e8693f9ff4b19c2fbc925.zip cpython-42a1172cf4f35b8e2d9e8693f9ff4b19c2fbc925.tar.gz cpython-42a1172cf4f35b8e2d9e8693f9ff4b19c2fbc925.tar.bz2 |
Document the new format codes B, H, I, k, K.
Diffstat (limited to 'Doc/api/utilities.tex')
-rw-r--r-- | Doc/api/utilities.tex | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Doc/api/utilities.tex b/Doc/api/utilities.tex index a0f7a44..a17f705 100644 --- a/Doc/api/utilities.tex +++ b/Doc/api/utilities.tex @@ -487,20 +487,42 @@ whose address should be passed. \item[\samp{b} (integer) {[char]}] Convert a Python integer to a tiny int, stored in a C \ctype{char}. + \item[\samp{B} (integer) {[unsigned char]}] + Convert a Python integer to a tiny int without overflow checking, + stored in a C \ctype{unsigned char}. \versionadded{2.3} + \item[\samp{h} (integer) {[short int]}] Convert a Python integer to a C \ctype{short int}. + \item[\samp{H} (integer) {[unsigned short int]}] + Convert a Python integer to a C \ctype{unsigned short int}, without + overflow checking. \versionadded{2.3} + \item[\samp{i} (integer) {[int]}] Convert a Python integer to a plain C \ctype{int}. + \item[\samp{I} (integer) {[unsigned int]}] + Convert a Python integer to a C \ctype{unsigned int}, without + overflow checking. \versionadded{2.3} + \item[\samp{l} (integer) {[long int]}] Convert a Python integer to a C \ctype{long int}. + \item[\samp{k} (integer) {[unsigned long]}] + Convert a Python integer to a C \ctype{unsigned long} without + overflow checking. \versionadded{2.3} + \item[\samp{L} (integer) {[PY_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{K} (integer) {[unsigned PY_LONG_LONG]}] + Convert a Python integer to a C \ctype{unsigned long long} + without overflow checking. This format is only available on + platforms that support \ctype{unsigned long long} (or + \ctype{unsigned _int64} on Windows). \versionadded{2.3} + \item[\samp{c} (string of length 1) {[char]}] Convert a Python character, represented as a string of length 1, to a C \ctype{char}. |