This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients Jon.Oberheide, neologix, pitrou, r.david.murray, sbt, vstinner
Date 2012-04-12.14:08:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1334239715.9.0.428897343246.issue14532@psf.upfronthosting.co.za>
In-reply-to
Content
You could rewrite:

    result |= x ^ y

as:

    result |= (x != y)

Of course, this assumes that the "!=" operator is constant-time for 1-element strings.
History
Date User Action Args
2012-04-12 14:08:35pitrousetrecipients: + pitrou, vstinner, r.david.murray, neologix, sbt, Jon.Oberheide
2012-04-12 14:08:35pitrousetmessageid: <1334239715.9.0.428897343246.issue14532@psf.upfronthosting.co.za>
2012-04-12 14:08:35pitroulinkissue14532 messages
2012-04-12 14:08:35pitroucreate