]> granicus.if.org Git - python/commitdiff
Correct docstring about return value when group didn't participate in match
authorAndrew M. Kuchling <amk@amk.ca>
Mon, 4 Sep 2000 03:19:48 +0000 (03:19 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Mon, 4 Sep 2000 03:19:48 +0000 (03:19 +0000)
    (pointed out by /F)

Lib/pre.py

index 3086bd454685cb2bc249696d469a5c2cb4292afd..9dedb9c79cf954659fa152062019909388daf655 100644 (file)
@@ -526,7 +526,7 @@ class MatchObject:
         
         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
+        substring). Return -1 if group exists but did not contribute
         to the match.
 
         """
@@ -542,7 +542,7 @@ class MatchObject:
         
         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
+        substring). Return -1 if group exists but did not contribute
         to the match.
 
         """
@@ -557,8 +557,8 @@ class MatchObject:
         """span([group=0]) -> tuple
         
         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
+        if group did not contribute to the match, this is (-1,
+        -1). Group defaults to zero (meaning the whole matched
         substring).
 
         """