Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XOR operator not commutative #80

Closed
cjdrake opened this issue Apr 4, 2014 · 0 comments
Closed

XOR operator not commutative #80

cjdrake opened this issue Apr 4, 2014 · 0 comments
Labels

Comments

@cjdrake
Copy link
Owner

cjdrake commented Apr 4, 2014

>>> x ^ 0
x
>>> 0 ^ x
TypeError: unsupported operand type

Fortunately, this is simple to fix: implement __rxor__.

@cjdrake cjdrake added the Bug label Apr 4, 2014
cjdrake added a commit that referenced this issue Apr 4, 2014
@cjdrake cjdrake closed this as completed Apr 4, 2014
cjdrake added a commit that referenced this issue Apr 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant