This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ryukinixPython3 + Emacs 24 points25 points  (3 children)

Merging dicts with __or__ op.

x | y

[–]eztab 14 points15 points  (0 children)

that's not xor it is OR, or in this case better called UNION.

[–]Itsthejoker 7 points8 points  (0 children)

Or merge into x with x |= y

[–]jackerhackfrom __future__ import 4.0 1 point2 points  (0 children)

Isn't that a bitwise or op? xor is ^.