Hi Antoine, > changeset: 701b2e0e6f3f > user: Antoine Pitrou <solip...@pitrou.net> > date: Thu Oct 13 18:07:37 2011 +0200 > summary: > Add a comment explaining this heuristic. > > diff --git a/Objects/stringlib/fastsearch.h b/Objects/stringlib/fastsearch.h > --- a/Objects/stringlib/fastsearch.h > +++ b/Objects/stringlib/fastsearch.h > @@ -115,6 +115,9 @@ > unsigned char needle; > needle = p[0] & 0xff; > #if STRINGLIB_SIZEOF_CHAR > 1 > + /* If looking for a multiple of 256, we'd have two > + many false positives looking for the '\0' byte in UCS2 > + and UCS4 representations. */
I guess this should read “too many”, not “two”. Cheers _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com