searching backwards in a string

Paul Rubin phr-n2002a at nightsong.com
Wed Feb 13 05:13:36 CET 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