Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Lib/test/test_iterlen.py

    r2 r391  
    2121Some containers become temporarily immutable during iteration.  This includes
    2222dicts, sets, and collections.deque.  Their implementation is equally simple
    23 though they need to permantently set their length to zero whenever there is
     23though they need to permanently set their length to zero whenever there is
    2424an attempt to iterate after a length mutation.
    2525
    2626The situation slightly more involved whenever an object allows length mutation
    27 during iteration.  Lists and sequence iterators are dynanamically updatable.
     27during iteration.  Lists and sequence iterators are dynamically updatable.
    2828So, if a list is extended during iteration, the iterator will continue through
    2929the new items.  If it shrinks to a point before the most recent iteration,
Note: See TracChangeset for help on using the changeset viewer.