mirror of
https://github.com/python/cpython.git
synced 2025-08-19 00:00:48 +00:00
#11565: Fix several typos. Patch by Piotr Kasprzyk.
This commit is contained in:
parent
6905de14fe
commit
c2077b0d9b
91 changed files with 125 additions and 125 deletions
|
@ -20,11 +20,11 @@ This is the case for tuples, xrange objects, and itertools.repeat().
|
|||
|
||||
Some containers become temporarily immutable during iteration. This includes
|
||||
dicts, sets, and collections.deque. Their implementation is equally simple
|
||||
though they need to permantently set their length to zero whenever there is
|
||||
though they need to permanently set their length to zero whenever there is
|
||||
an attempt to iterate after a length mutation.
|
||||
|
||||
The situation slightly more involved whenever an object allows length mutation
|
||||
during iteration. Lists and sequence iterators are dynanamically updatable.
|
||||
during iteration. Lists and sequence iterators are dynamically updatable.
|
||||
So, if a list is extended during iteration, the iterator will continue through
|
||||
the new items. If it shrinks to a point before the most recent iteration,
|
||||
then no further items are available and the length is reported at zero.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue