[Python-checkins] r46173 - python/trunk/Objects/unicodeobject.c
A.M. Kuchling
amk at amk.ca
Wed May 24 16:58:36 CEST 2006
On Wed, May 24, 2006 at 04:28:12PM +0200, fredrik.lundh wrote:
> + if (m <= 1) {
> + if (m < 0)
> + return -1;
> + /* use special case for 1-character strings */
The special case is also arrived at if m==0; is that desired?
(Perhaps the caller of fastsearch will have already checked this case.)
A very neat approach!
--amk
More information about the Python-checkins
mailing list