searching backwards in a string

Paul Rubin phr-n2002a at nightsong.com
Tue Feb 12 23:13:36 EST 2002


Skip Montanaro <skip at pobox.com> writes:
>     Paul> here 50000 and -1 are the starting and ending locations.
> 
> If start > end isn't direction == -1 implied?

Nope.  I tried it and it didn't search backwards.  The behavior
was actually a little bit peculiar and may not have been consistent
with the docs.  I'll try it again later and report a doc bug if 
it's inconsistent.



More information about the Python-list mailing list