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 vstinner
Recipients ddvoinikov, flox, loewis, pitrou, vstinner
Date 2012-08-02.12:49:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1343911765.44.0.718906783183.issue15534@psf.upfronthosting.co.za>
In-reply-to
Content
Hum, it's a regression introduced by the super-optimized fastsearch. It is just a typo: _s => s. I renamed _s to ptr to avoid future confusion ;-)

--

For your information, str.find(), str.rfind(), str.index(), str.rindex() and str.replace() are now using memchr() and memrchr() to find a substring, even if the substring contains characters outside the ASCII (U+0000-U+007F) and latin1 ranges (U+0000-U+00FF). memchr() and memrchr() are much faster than a dummy C loop, even if there are false positive.
History
Date User Action Args
2012-08-02 12:49:26vstinnersetrecipients: + vstinner, loewis, pitrou, ddvoinikov, flox
2012-08-02 12:49:25vstinnersetmessageid: <1343911765.44.0.718906783183.issue15534@psf.upfronthosting.co.za>
2012-08-02 12:49:24vstinnerlinkissue15534 messages
2012-08-02 12:49:24vstinnercreate