#13222: unexpected HttpResponse iteration behavior
-------------------------------------+-------------------------------------
     Reporter:  teepark              |                    Owner:  aaugustin
         Type:  Bug                  |                   Status:  closed
    Component:  HTTP handling        |                  Version:  1.3-rc1
     Severity:  Normal               |               Resolution:  fixed
     Keywords:                       |             Triage Stage:  Ready for
    Has patch:  1                    |  checkin
  Needs tests:  0                    |      Needs documentation:  0
Easy pickings:  0                    |  Patch needs improvement:  0
                                     |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by teepark):

 {{{
 >>> import collections
 >>> d = collections.deque([1,2,3])
 >>> i = iter(d)
 >>> d.append(4)
 >>> list(i)
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
 RuntimeError: deque mutated during iteration
 }}}

 it's not about ordered vs unordered, it's about whether pre-existing
 iterators tolerate mutation.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/13222#comment:26>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to