Message118231
| Author |
rhettinger |
| Recipients |
ezio.melotti, georg.brandl, rhettinger, sandro.tosi, terry.reedy, zuo |
| Date |
2010年10月08日.22:34:26 |
| SpamBayes Score |
0.0017667552 |
| Marked as misclassified |
No |
| Message-id |
<1286577268.05.0.260651258873.issue7771@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The '^' corresponds to the __xor__ magic method.
snip from _abcoll.py:
def __xor__(self, other):
if not isinstance(other, Set):
if not isinstance(other, Iterable):
return NotImplemented
other = self._from_iterable(other)
return (self - other) | (other - self) |
|