Message158012
| Author |
vstinner |
| Recipients |
Jon.Oberheide, neologix, sbt, vstinner |
| Date |
2012年04月11日.08:47:27 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<CAMpsgwYCJ=ns8BXDGn4kzj1TTuS7aSnrFSvB-nqUakgQNkMQ=w@mail.gmail.com> |
| In-reply-to |
<1334128951.26.0.618416919937.issue14532@psf.upfronthosting.co.za> |
| Content |
if response == digest:
can be replaced by:
if sum(x^y for x, y in itertools.zip_longest(response, digest,
fillvalue=256)) == 0:
I hope that zip_longest() does not depend too much on response and digest. |
|