On 7 January 2016 at 22:26, Blake Griffith <blake.a.griff...@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>. _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com