Added doubled word warnings.

This commit is contained in:
Raymond Hettinger 2003-08-25 04:39:55 +00:00
parent 999b57c872
commit e41d4c8ec9
3 changed files with 6 additions and 1 deletions

View file

@ -1740,7 +1740,7 @@ in a negative index); this is the customary handling of negative
indexes by the built-in sequence types, and the \method{__*item__()}
methods are expected to do this as well. However, since they should
already be doing that, negative indexes cannot be passed in; they must
be be constrained to the bounds of the sequence before being passed to
be constrained to the bounds of the sequence before being passed to
the \method{__*item__()} methods.
Calling \code{max(0, i)} conveniently returns the proper value.