Antoine Pitrou <[email protected]> added the comment:
You could rewrite:
result |= x ^ y
as:
result |= (x != y)
Of course, this assumes that the "!=" operator is constant-time for 1-element
strings.
----------
nosy: +pitrou
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue14532>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com