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
6c373f75
Kaydet (Commit)
6c373f75
authored
Haz 29, 1998
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Document new default arg to groups() and new functions/methods
groupdict() and findall().
üst
8ea9f4d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
6 deletions
+25
-6
libre.tex
Doc/lib/libre.tex
+25
-6
No files found.
Doc/lib/libre.tex
Dosyayı görüntüle @
6c373f75
...
@@ -402,6 +402,13 @@ leftmost such \character{\#} through the end of the line are ignored.
...
@@ -402,6 +402,13 @@ leftmost such \character{\#} through the end of the line are ignored.
the old
\function
{
regsub.split()
}
and
\function
{
regsub.splitx()
}
.
the old
\function
{
regsub.split()
}
and
\function
{
regsub.splitx()
}
.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
findall
}{
pattern, string
}
Return a list of all non-overlapping matches of
\var
{
pattern
}
in
\var
{
string
}
. If one or more groups are present in the pattern,
return a list of groups; this will be a list of tuples if the pattern
has more than one group. Empty matches are included in the result.
\end{funcdesc}
\begin{funcdesc}
{
sub
}{
pattern, repl, string
\optional
{
, count
\code
{
= 0
}}}
\begin{funcdesc}
{
sub
}{
pattern, repl, string
\optional
{
, count
\code
{
= 0
}}}
Return the string obtained by replacing the leftmost non-overlapping
Return the string obtained by replacing the leftmost non-overlapping
occurrences of
\var
{
pattern
}
in
\var
{
string
}
by the replacement
occurrences of
\var
{
pattern
}
in
\var
{
string
}
by the replacement
...
@@ -504,6 +511,10 @@ attributes:
...
@@ -504,6 +511,10 @@ attributes:
Identical to the
\function
{
split()
}
function, using the compiled pattern.
Identical to the
\function
{
split()
}
function, using the compiled pattern.
\end{methoddesc}
\end{methoddesc}
\begin{methoddesc}
[RegexObject]
{
findall
}{
string
}
Identical to the
\function
{
findall()
}
function, using the compiled pattern.
\end{methoddesc}
\begin{methoddesc}
[RegexObject]
{
sub
}{
repl, string
\optional
{
, count
\code
{
= 0
}}}
\begin{methoddesc}
[RegexObject]
{
sub
}{
repl, string
\optional
{
, count
\code
{
= 0
}}}
Identical to the
\function
{
sub()
}
function, using the compiled pattern.
Identical to the
\function
{
sub()
}
function, using the compiled pattern.
\end{methoddesc}
\end{methoddesc}
...
@@ -566,13 +577,21 @@ After performing this match, \code{m.group(1)} is \code{'3'}, as is
...
@@ -566,13 +577,21 @@ After performing this match, \code{m.group(1)} is \code{'3'}, as is
\code
{
m.group('int')
}
, and
\code
{
m.group(2)
}
is
\code
{
'14'
}
.
\code
{
m.group('int')
}
, and
\code
{
m.group(2)
}
is
\code
{
'14'
}
.
\end{methoddesc}
\end{methoddesc}
\begin{methoddesc}
[MatchObject]
{
groups
}{}
\begin{methoddesc}
[MatchObject]
{
groups
}{
\optional
{
default
}
}
Return a tuple containing all the subgroups of the match, from 1 up to
Return a tuple containing all the subgroups of the match, from 1 up to
however many groups are in the pattern. Groups that did not
however many groups are in the pattern. The
\var
{
default
}
argument is
participate in the match have values of
\code
{
None
}
. (Incompatibility
used for groups that did not participate in the match; it defaults to
note: in the original Python 1.5 release, if the tuple was one element
\code
{
None
}
. (Incompatibility note: in the original Python 1.5
long, a string would be returned instead. In later versions, a
release, if the tuple was one element long, a string would be returned
singleton tuple is returned in such cases.)
instead. In later versions (from 1.5.1 on), a singleton tuple is
returned in such cases.)
\end{methoddesc}
\begin{methoddesc}
[MatchObject]
{
groupdict
}{
\optional
{
default
}}
Return a dictionary containing all the
\emph
{
named
}
subgroups of the
match, keyed by the subgroup name. The
\var
{
default
}
argument is
used for groups that did not participate in the match; it defaults to
\code
{
None
}
.
\end{methoddesc}
\end{methoddesc}
\begin{methoddesc}
[MatchObject]
{
start
}{
\optional
{
group
}}
\begin{methoddesc}
[MatchObject]
{
start
}{
\optional
{
group
}}
...
...
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