This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Clarification of "pos" and "endpos" for match objects.
Type: Stage:
Components: Documentation Versions: Python 2.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: akuchling, foolip
Priority: normal Keywords:

Created on 2003-05-04 10:03 by foolip, last changed 2022-04-10 16:08 by admin. This issue is now closed.

Messages (2)
msg15863 - (view) Author: Philip Jägenstedt (foolip) Date: 2003-05-04 10:03
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.
msg15864 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2003-05-13 14:41
Logged In: YES 
user_id=11375

Fixed in CVS; thanks!
History
Date User Action Args
2022-04-10 16:08:34adminsetgithub: 38441
2003-05-04 10:03:52foolipcreate