#3463: EmptyQuerySet's iterator() method does not return a generator
------------------------------------------------+---------------------------
Reporter:  Gary Wilson <[EMAIL PROTECTED]>  |       Owner:  adrian        
  Status:  new                                  |   Component:  Core framework
 Version:  SVN                                  |    Keywords:                
   Stage:  Unreviewed                           |   Has_patch:  1             
------------------------------------------------+---------------------------
 {{{
 #!python
 >>> User.objects.all().iterator()
 <generator object at 0xb76a714c>
 
 >>> User.objects.none().iterator()
 Traceback (most recent call last):
   File "<console>", line 1, in ?
   File "./django/db/models/query.py", line 596, in iterator
     raise StopIteration
 StopIteration
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/3463>
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