diff options
author | Guido van Rossum <guido@python.org> | 2006-03-07 18:50:55 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2006-03-07 18:50:55 (GMT) |
commit | 38fff8c4e4276e4e57660a78f305e68bfa87874b (patch) | |
tree | 5f79c06159053f9c7113410fc69dccba01e331ab /Doc/api | |
parent | 9d7855076a8e030e30459de685e762f63bdecac6 (diff) | |
download | cpython-38fff8c4e4276e4e57660a78f305e68bfa87874b.zip cpython-38fff8c4e4276e4e57660a78f305e68bfa87874b.tar.gz cpython-38fff8c4e4276e4e57660a78f305e68bfa87874b.tar.bz2 |
Checking in the code for PEP 357.
This was mostly written by Travis Oliphant.
I've inspected it all; Neal Norwitz and MvL have also looked at it
(in an earlier incarnation).
Diffstat (limited to 'Doc/api')
-rw-r--r-- | Doc/api/abstract.tex | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/api/abstract.tex b/Doc/api/abstract.tex index c543563..320275c 100644 --- a/Doc/api/abstract.tex +++ b/Doc/api/abstract.tex @@ -346,6 +346,7 @@ determination. either the sequence and mapping protocols, the sequence length is returned. On error, \code{-1} is returned. This is the equivalent to the Python expression \samp{len(\var{o})}.\bifuncindex{len} + \versionadded{2.5} \end{cfuncdesc} @@ -689,6 +690,10 @@ determination. \samp{float(\var{o})}.\bifuncindex{float} \end{cfuncdesc} +\begin{cfuncdesc}{Py_ssize_t}{PyNumber_Index}{PyObject *o} + Returns the \var{o} converted to a Py_ssize_t integer on success, or + -1 with an exception raised on failure. +\end{cfuncdesc} \section{Sequence Protocol \label{sequence}} |