Message199792
Use int's.
(int.from_bytes(a, 'big') ^ int.from_bytes(b, 'big')).to_bytes(len(a), 'big')
Adding & and | operations to bytes will be confused because bytes is a sequence and this will conflict with set operations. |
|
Date |
User |
Action |
Args |
2013-10-13 20:21:16 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, georg.brandl, pitrou, christian.heimes |
2013-10-13 20:21:16 | serhiy.storchaka | set | messageid: <1381695676.27.0.846000925972.issue19251@psf.upfronthosting.co.za> |
2013-10-13 20:21:16 | serhiy.storchaka | link | issue19251 messages |
2013-10-13 20:21:16 | serhiy.storchaka | create | |
|