Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
02305f63
Commit
02305f63
authored
Sep 04, 2000
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct docstring about return value when group didn't participate in match
(pointed out by /F)
parent
4e9e0a5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Lib/pre.py
Lib/pre.py
+4
-4
No files found.
Lib/pre.py
View file @
02305f63
...
...
@@ -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).
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment