mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Added doubled word warnings.
This commit is contained in:
parent
999b57c872
commit
e41d4c8ec9
3 changed files with 6 additions and 1 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue