[Python-Dev] bitwise operations for bytes and bytearray (original) (raw)
Martin Panter vadmium+py at gmail.com
Thu Jan 7 18:57:24 EST 2016
- Previous message (by thread): [Python-Dev] bitwise operations for bytes and bytearray
- Next message (by thread): [Python-Dev] bitwise operations for bytes and bytearray
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 7 January 2016 at 22:26, Blake Griffith <blake.a.griffith at gmail.com> 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>.
- Previous message (by thread): [Python-Dev] bitwise operations for bytes and bytearray
- Next message (by thread): [Python-Dev] bitwise operations for bytes and bytearray
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]