This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients christian.heimes, georg.brandl, pitrou, serhiy.storchaka
Date 2013-10-13.20:21:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1381695676.27.0.846000925972.issue19251@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-10-13 20:21:16serhiy.storchakasetrecipients: + serhiy.storchaka, georg.brandl, pitrou, christian.heimes
2013-10-13 20:21:16serhiy.storchakasetmessageid: <1381695676.27.0.846000925972.issue19251@psf.upfronthosting.co.za>
2013-10-13 20:21:16serhiy.storchakalinkissue19251 messages
2013-10-13 20:21:16serhiy.storchakacreate