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
2cb176f3
Kaydet (Commit)
2cb176f3
authored
Eyl 04, 2000
tarafından
Andrew M. Kuchling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Correct docstring about return value when group didn't participate in match
(pointed out by /F)
üst
f4d189f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
pre.py
Lib/pre.py
+4
-4
No files found.
Lib/pre.py
Dosyayı görüntüle @
2cb176f3
...
@@ -526,7 +526,7 @@ class MatchObject:
...
@@ -526,7 +526,7 @@ class MatchObject:
Return the index of the start of the substring matched by
Return the index of the start of the substring matched by
group; group defaults to zero (meaning the whole matched
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.
to the match.
"""
"""
...
@@ -542,7 +542,7 @@ class MatchObject:
...
@@ -542,7 +542,7 @@ class MatchObject:
Return the indices of the end of the substring matched by
Return the indices of the end of the substring matched by
group; group defaults to zero (meaning the whole matched
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.
to the match.
"""
"""
...
@@ -557,8 +557,8 @@ class MatchObject:
...
@@ -557,8 +557,8 @@ class MatchObject:
"""span([group=0]) -> tuple
"""span([group=0]) -> tuple
Return the 2-tuple (m.start(group), m.end(group)). Note that
Return the 2-tuple (m.start(group), m.end(group)). Note that
if group did not contribute to the match, this is (
None
,
if group did not contribute to the match, this is (
-1
,
None
). Group defaults to zero (meaning the whole matched
-1
). Group defaults to zero (meaning the whole matched
substring).
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