From 85c20a41dfcec04d161ad7da7260e7b94c62d228 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Thu, 6 Nov 2003 14:06:48 +0000 Subject: Implement and apply PEP 322, reverse iteration --- Doc/lib/libfuncs.tex | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Doc/lib/libfuncs.tex') diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex index a9f3a65a70..7d64f93638 100644 --- a/Doc/lib/libfuncs.tex +++ b/Doc/lib/libfuncs.tex @@ -880,6 +880,14 @@ class C(object): when passed to \function{eval()}. \end{funcdesc} +\begin{funcdesc}{reversed}{seq} + Return a reverse iterator. \var{seq} must be an object which + supports the sequence protocol (the __len__() method and the + \method{__getitem__()} method with integer arguments starting at + \code{0}). + \versionadded{2.4} +\end{funcdesc} + \begin{funcdesc}{round}{x\optional{, n}} Return the floating point value \var{x} rounded to \var{n} digits after the decimal point. If \var{n} is omitted, it defaults to zero. -- cgit v1.2.1