#3440: DateQuerySet.iterator not iterable if empty
----------------------------------+-----------------------------------------
Reporter:  [EMAIL PROTECTED]  |       Owner:  adrian          
  Status:  new                    |   Component:  Database wrapper
 Version:  SVN                    |    Keywords:                  
   Stage:  Unreviewed             |   Has_patch:  1               
----------------------------------+-----------------------------------------
 The changes in r4394 to support empty QuerySets does not work for
 `DateQuerySet.iterator()` because the method is not a generator, but
 instead returns an iterable.  Instead of raising a `StopIteration` it
 should return an empty list.
 
 Also, the other methods that are generators (e.g. `QuerySet.iterator()`)
 raise a `StopIteration` when they could simply return.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/3440>
Django Code <http://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 this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to