From: Georg Brandl Date: Wed, 3 Aug 2005 07:18:04 +0000 (+0000) Subject: backport bug [ 1250306 ] incorrect description of range function X-Git-Tag: v2.4.2c1~112 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=16bb9c905212a3c2b8e07030c65ffa71836ccb74;p=thirdparty%2FPython%2Fcpython.git backport bug [ 1250306 ] incorrect description of range function --- diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex index f7e537350130..c0595b1bcb58 100644 --- a/Doc/lib/libfuncs.tex +++ b/Doc/lib/libfuncs.tex @@ -737,7 +737,7 @@ class C(object): \var{start} + 2 * \var{step}, \ldots]}. If \var{step} is positive, the last element is the largest \code{\var{start} + \var{i} * \var{step}} less than \var{stop}; if \var{step} is negative, the last - element is the largest \code{\var{start} + \var{i} * \var{step}} + element is the smallest \code{\var{start} + \var{i} * \var{step}} greater than \var{stop}. \var{step} must not be zero (or else \exception{ValueError} is raised). Example: