#2560: HttpResponse should support close() for iterators
--------------------------------------------------------+-------------------
Reporter: Ivan Sagalaev <[EMAIL PROTECTED]> | Owner: adrian
Type: defect | Status: new
Priority: normal | Milestone:
Component: Core framework | Version:
Severity: normal | Resolution:
Keywords: |
--------------------------------------------------------+-------------------
Comment (by Ivan Sagalaev <[EMAIL PROTECTED]>):
Some comments on the patch:
* It's somewhat backwards incompatible: before a 'response.iterator' was
used to iterator over and now response is an iterator itself. This can be
easily fixed by making 'iterator' to return 'self' but I decided to throw
it away because it was hardly ever used explicitely and the new approach
seems cleaner.
* The thing that previously was named '_iterator' is now renamed to
'_container' which is more pure since an actual iterator is the thing that
you get from it be calling '__iter__'.
--
Ticket URL: <http://code.djangoproject.com/ticket/2560>
Django <http://code.djangoproject.org/>
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 this group at
http://groups.google.com/group/django-updates
-~----------~----~----~----~------~----~------~--~---