>>> On 7 January 2016 at 22:26, Blake Griffith
>>>> wrote:
>>>> I'm interested in adding the functionality to do something like:
>>>>
>>>>> b'a' ^ b'b'
>>>>>>>
>>>>>> b'
eone there pointed out this feature was suggested on the mailing list a
while back (2006)
https://mail.python.org/pipermail/python-dev/2006-March/061980.html
On Fri, Jan 8, 2016 at 1:12 AM, Andrew Barnert wrote:
> On Jan 7, 2016, at 15:57, Martin Panter wrote:
> >
> >> On 7
Hi!
I'm interested in adding the functionality to do something like:
>>> b'a' ^ b'b'
b'\x03'
Instead of the good ol' TypeError.
I think both bytes and bytearray should support all the bitwise operations.
I've never hacked on cpython before. I'm starting by just trying to add xor
to bytearray