[Python-bugs-list] [ python-Bugs-597177 ] Tiny tiny doc bug in regexp lib

noreply@sourceforge.net noreply@sourceforge.net
Mon, 19 Aug 2002 07:27:14 -0700


Bugs item #597177, was opened at 2002-08-19 14:27
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=597177&group_id=5470

Category: Documentation
Group: Python 2.2.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Andrew Koenig (arkoenig)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: Tiny tiny doc bug in regexp lib

Initial Comment:
Section 4.2.4, in the description of "match", says:

The optional parameter endpos limits how far the string
will be searched; it will be as if the string is endpos
characters long, so only the characters from pos to
endpos will be searched for a match.

Shouldn't it be "as if the string is endpos-pos
characters long"?  Also, shouldn't it be "the
characters in the range [pos:endpos]" to avoid the
potential ambiguity (i.e. making it clearer that the
range does not include the character at index endpos)?

Finally, what happens if pos > endpos?


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=597177&group_id=5470