#29865: Add XOR for use in Q Queries
-------------------------------------+-------------------------------------
     Reporter:  Griffith Rees        |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Database layer       |                  Version:  2.1
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:  xor                  |             Triage Stage:
                                     |  Someday/Maybe
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by jishansingh):

 XOR can be implemented by

 {{{
 def __xor__(self,other):
         return
 self.__or__(other).__and__(self.__invert__().__or__(other.__invert__()))
 }}}
 it works for sqlite (possibly for others)
 wouldn't it solves the problem

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29865#comment:6>
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/063.175327657d3947a03939ef4a15988c64%40djangoproject.com.

Reply via email to