[Python-checkins] CVS: python/dist/src/Lib pre.py,1.2,1.3
A.M. Kuchling
python-dev@python.org
Sun, 3 Sep 2000 20:19:51 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv30435
Modified Files:
pre.py
Log Message:
Correct docstring about return value when group didn't participate in match
(pointed out by /F)
Index: pre.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/pre.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** pre.py 2000/07/16 12:04:30 1.2
--- pre.py 2000/09/04 03:19:48 1.3
***************
*** 527,531 ****
Return the index of the start of the substring matched by
group; group defaults to zero (meaning the whole matched
! substring). Return None if group exists but did not contribute
to the match.
--- 527,531 ----
Return the index of the start of the substring matched by
group; group defaults to zero (meaning the whole matched
! substring). Return -1 if group exists but did not contribute
to the match.
***************
*** 543,547 ****
Return the indices of the end of the substring matched by
group; group defaults to zero (meaning the whole matched
! substring). Return None if group exists but did not contribute
to the match.
--- 543,547 ----
Return the indices of the end of the substring matched by
group; group defaults to zero (meaning the whole matched
! substring). Return -1 if group exists but did not contribute
to the match.
***************
*** 558,563 ****
Return the 2-tuple (m.start(group), m.end(group)). Note that
! if group did not contribute to the match, this is (None,
! None). Group defaults to zero (meaning the whole matched
substring).
--- 558,563 ----
Return the 2-tuple (m.start(group), m.end(group)). Note that
! if group did not contribute to the match, this is (-1,
! -1). Group defaults to zero (meaning the whole matched
substring).