#23662: QuerySet __nonzero__, __len__ cause queryset evaluation
-------------------------------------+-------------------------------------
     Reporter:  smishlayev           |                    Owner:  nobody
         Type:                       |                   Status:  closed
  Cleanup/optimization               |                  Version:  1.7
    Component:  Database layer       |               Resolution:  wontfix
  (models, ORM)                      |             Triage Stage:
     Severity:  Normal               |  Unreviewed
     Keywords:                       |      Needs documentation:  0
    Has patch:  1                    |  Patch needs improvement:  0
  Needs tests:  0                    |                    UI/UX:  1
Easy pickings:  0                    |
-------------------------------------+-------------------------------------
Changes (by loic):

 * status:  new => closed
 * resolution:   => wontfix


Comment:

 There is merit in your request but it's too late to change this, it would
 be a major backward incompatibility. Lot of code rely on the fact that a
 `QuerySet` is evaluated after being tested for equality or after a call to
 `len()`.

--
Ticket URL: <https://code.djangoproject.com/ticket/23662#comment:5>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.3b9126f4c139dd0ff996580dcccbf5ef%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to