Antoine Pitrou <pit...@free.fr> 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 <rep...@bugs.python.org> <http://bugs.python.org/issue14532> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com