MCPcopy
hub / github.com/django/django / __xor__

Method __xor__

django/db/models/expressions.py:113–118  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

111 return self._combine(other, self.BITRIGHTSHIFT, False)
112
113 def __xor__(self, other):
114 if getattr(self, "conditional", False) and getattr(other, "conditional", False):
115 return Q(self) ^ Q(other)
116 raise NotImplementedError(
117 "Use .bitand(), .bitor(), and .bitxor() for bitwise logical operations."
118 )
119
120 def bitxor(self, other):
121 return self._combine(other, self.BITXOR, False)

Callers

nothing calls this directly

Calls 1

QClass · 0.90

Tested by

no test coverage detected