mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Document new Py_ssize_t API.
This commit is contained in:
parent
8b87a0b5fc
commit
3b19754079
2 changed files with 27 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue