On this page
operator.ixor
Prev: operator.itruediv | Up: operator | Next: operator.methodcaller
Rel: operator.abs, operator.add, operator.and_, operator.attrgetter
Ref: docs.python.org — operator.ixor
Tags: #public #python3 #stdlib #operator
Import
import operator
from operator import ixor
Signature & Overview
operator.ixor(a, b, /)
Same as a ^= b.
Usage
import operator
s = {1, 2}
assert operator.ixor(s, {2, 3}) is s and s == {1, 3}
Gotchas
- In-place
^=.
REPL Inspect
from operator import ixor
help(ixor)
Linked from
Related notes
- tuts/python3/stdlib_module/operator/itruediv Linked here; links to this page; shared tags: #operator, #stdlib
- tuts/python3/stdlib_module/operator/methodcaller Linked here; links to this page; shared tags: #operator, #stdlib
- tuts/python3/stdlib_module/operator Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/operator/abs Linked here; shared tags: #operator, #stdlib
- tuts/python3/stdlib_module/operator/add Linked here; shared tags: #operator, #stdlib
- tuts/python3/stdlib_module/operator/and_ Linked here; shared tags: #operator, #stdlib
- tuts/python3/stdlib_module/operator/attrgetter Linked here; shared tags: #operator, #stdlib
- tuts/python3/stdlib_module/operator/call shared tags: #operator, #stdlib
- tuts/python3/stdlib_module/operator/concat shared tags: #operator, #stdlib
- tuts/python3/stdlib_module/operator/contains shared tags: #operator, #stdlib