[Python-bugs-list] [ python-Bugs-732124 ] Clarification of "pos" and "endpos" for match objects.

SourceForge.net noreply@sourceforge.net
Sun, 04 May 2003 03:03:52 -0700


Bugs item #732124, was opened at 2003-05-04 12:03
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=732124&group_id=5470

Category: Documentation
Group: Python 2.2.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Philip Jägenstedt (foolip)
Assigned to: Nobody/Anonymous (nobody)
Summary: Clarification of "pos" and "endpos" for match objects.

Initial Comment:
In doc/python2.2/html/lib/match-objects.html the
following is stated: 

pos
    The value of pos which was passed to the search()
or match() function. ...

endpos
    The value of endpos which was passed to the
search() or match() function. ...

I was confused for quite a while when I couldn't see a
pos or endpos argument in the docs for match() in the
re module. The said arguments exist only for "4.2.4
Regular Expression Objects", so I would suggest that it
is clarified in the match-object docs when the pos and
endpos members are available. I guess that would mean
writing "procedure" instead of "function" too, but more
importantly, a formulation like "The value of pos which
was passed to the search() or match() procedure of the
regexp object"

That is all.

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

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