Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
e06cbb8c
Kaydet (Commit)
e06cbb8c
authored
Tem 06, 2001
tarafından
Fredrik Lundh
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bug #436596
re.findall doesn't take a maxsplit argument
üst
fd44eabf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
sre.py
Lib/sre.py
+2
-2
No files found.
Lib/sre.py
Dosyayı görüntüle @
e06cbb8c
...
@@ -75,7 +75,7 @@ def split(pattern, string, maxsplit=0):
...
@@ -75,7 +75,7 @@ def split(pattern, string, maxsplit=0):
returning a list containing the resulting substrings."""
returning a list containing the resulting substrings."""
return
_compile
(
pattern
,
0
)
.
split
(
string
,
maxsplit
)
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.
"""Return a list of all non-overlapping matches in the string.
If one or more groups are present in the pattern, return a
If one or more groups are present in the pattern, return a
...
@@ -83,7 +83,7 @@ def findall(pattern, string, maxsplit=0):
...
@@ -83,7 +83,7 @@ def findall(pattern, string, maxsplit=0):
has more than one group.
has more than one group.
Empty matches are included in the result."""
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
):
def
compile
(
pattern
,
flags
=
0
):
"Compile a regular expression pattern, returning a pattern object."
"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