0

I want to xor two big integers. Just installed the gmpy2 library, but no mpz_xor operation anywhere. Am I missing something?

framontb
  • 1,817
  • 1
  • 15
  • 33

1 Answers1

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