[issue19251] bitwise ops for bytes of equal length

Ramchandra Apte report at bugs.python.org
Sat Oct 19 05:44:34 CEST 2013


Ramchandra Apte added the comment:

On 19 October 2013 04:56, Terry J. Reedy <report at bugs.python.org> wrote:

>
> Terry J. Reedy added the comment:
>
> 'XOR of two bytes in one place' strikes me as a thin excuse for a new
> feature that abbreviates a simple, short, one-liner. To me, bytes(x ^ y for
> x, y in zip(a, b)) looks fine. a and b can be any iterables of ints.
>
> ----------
> nosy: +terry.reedy
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <http://bugs.python.org/issue19251>
> _______________________________________
>
Hm... I think you are right.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19251>
_______________________________________


More information about the Python-bugs-list mailing list