Message257729
Another possibility if you don't mind a copy is to use int.from_bytes():
>>> p = int.from_bytes(a, 'little')
>>> q = int.from_bytes(b, 'little')
>>> (p ^ q).to_bytes(len(a), 'little')
b'qPP' |
|
Date |
User |
Action |
Args |
2016-01-08 00:19:54 | pitrou | set | recipients:
+ pitrou, gvanrossum, georg.brandl, rhettinger, terry.reedy, vstinner, christian.heimes, Ramchandra Apte, martin.panter, serhiy.storchaka, josh.r |
2016-01-08 00:19:53 | pitrou | set | messageid: <1452212393.98.0.0712375085545.issue19251@psf.upfronthosting.co.za> |
2016-01-08 00:19:53 | pitrou | link | issue19251 messages |
2016-01-08 00:19:53 | pitrou | create | |
|