#31561: QuerySet could be a collections.abc.Set
-------------------------------------+-------------------------------------
     Reporter:  Alexandre Poitevin   |                    Owner:  nobody
         Type:                       |                   Status:  new
  Cleanup/optimization               |
    Component:  Database layer       |                  Version:  3.0
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Nick Pope):

 I'm not sure that `collections.abc.Set` is the right abstract base class
 as it make no guarantee about order. A `QuerySet` is not equivalent to a
 `set`. Even `collections.abc.Sequence` is no good as that inherits from
 `collections.abc.Reversible` and `QuerySet` is not reversible. The best we
 could probably do is `collections.abc.Collection`...

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31561#comment:1>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/074.98c042bc4eb78da075f33a503c41be10%40djangoproject.com.

Reply via email to