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
e06cbb8c
Commit
e06cbb8c
authored
Jul 06, 2001
by
Fredrik Lundh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug #436596
re.findall doesn't take a maxsplit argument
parent
fd44eabf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Lib/sre.py
Lib/sre.py
+2
-2
No files found.
Lib/sre.py
View file @
e06cbb8c
...
...
@@ -75,7 +75,7 @@ def split(pattern, string, maxsplit=0):
returning a list containing the resulting substrings."""
return
_compile
(
pattern
,
0
).
split
(
string
,
maxsplit
)
def
findall
(
pattern
,
string
,
maxsplit
=
0
):
def
findall
(
pattern
,
string
):
"""Return a list of all non-overlapping matches in the string.
If one or more groups are present in the pattern, return a
...
...
@@ -83,7 +83,7 @@ def findall(pattern, string, maxsplit=0):
has more than one group.
Empty matches are included in the result."""
return
_compile
(
pattern
,
0
).
findall
(
string
,
maxsplit
)
return
_compile
(
pattern
,
0
).
findall
(
string
)
def
compile
(
pattern
,
flags
=
0
):
"Compile a regular expression pattern, returning a pattern object."
...
...
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