I want to xor two big integers. Just installed the gmpy2 library, but no mpz_xor operation anywhere. Am I missing something?
Asked
Active
Viewed 151 times
1 Answers
1
Python has operator overloading, so they just made it ^
. I would post a demo, but I only have access to gmpy 1.17, not gmpy2. Here's a code link showing the presence of an ^
overload, though.

user2357112
- 260,549
- 28
- 431
- 505