Re: [Python-Dev] bitwise operations for bytes and bytearray

2016年1月07日 15:59:18 -0800

On 7 January 2016 at 22:26, Blake Griffith <[email protected]> wrote:
> 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.
There is a bug open about adding this kind of functionality:
<https://bugs.python.org/issue19251>.
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to