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
7c2fdda0
Kaydet (Commit)
7c2fdda0
authored
Haz 26, 1996
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Better and correct words for split().
üst
1e8b63eb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
20 deletions
+20
-20
libppath.tex
Doc/lib/libppath.tex
+10
-10
libppath.tex
Doc/libppath.tex
+10
-10
No files found.
Doc/lib/libppath.tex
Dosyayı görüntüle @
7c2fdda0
...
...
@@ -110,16 +110,16 @@ Raise an exception if a stat call on either pathname fails.
\end{funcdesc}
\begin{funcdesc}
{
split
}{
p
}
Split the pathname
\var
{
p
}
in a pair
\code
{
(
\var
{
head
}
,
\var
{
tail
}
)
}
,
where
\var
{
tail
}
is the last pathname component and
\var
{
head
}
is
everything leading up to that.
If
\var
{
p
}
ends in a slash (except if
it is the root), the trailing slash is removed and the operation
applied to the result; otherwise,
\code
{
join(
\var
{
head
}
,
\var
{
tail
}
)
}
equal
s
\var
{
p
}
. The
\var
{
tail
}
part never contains a slash. Some boundary
cases:
\
if
\var
{
p
}
is the root,
\var
{
head
}
equals
\var
{
p
}
and
\var
{
tail
}
is empty; if
\var
{
p
}
is empty, both
\var
{
head
}
and
\var
{
tail
}
are empty; if
\var
{
p
}
contains no slash,
\var
{
head
}
is
empty and
\var
{
tail
}
equals
\var
{
p
}
.
Split the pathname
\var
{
p
}
in a pair
\code
{
(
\var
{
head
}
,
\var
{
tail
}
)
}
,
where
\var
{
tail
}
is the last pathname component and
\var
{
head
}
is
everything leading up to that.
The
\var
{
tail
}
part will never contain
a slash; if
\var
{
p
}
ends in a slash,
\var
{
tail
}
will be empty. If
there is no slash in
\var
{
p
}
,
\var
{
head
}
will be empty. If
\var
{
p
}
i
s
empty, both
\var
{
head
}
and
\var
{
tail
}
are empty. Trailing slashes are
stripped from
\var
{
head
}
unless it is the root (one or more slashes
only). In nearly all cases,
\code
{
join(
\var
{
head
}
,
\var
{
tail
}
)
}
equals
\var
{
p
}
(the only exception being when there were multiple
slashes separating
\var
{
head
}
from
\var
{
tail
}
)
.
\end{funcdesc}
\begin{funcdesc}
{
splitext
}{
p
}
...
...
Doc/libppath.tex
Dosyayı görüntüle @
7c2fdda0
...
...
@@ -110,16 +110,16 @@ Raise an exception if a stat call on either pathname fails.
\end{funcdesc}
\begin{funcdesc}
{
split
}{
p
}
Split the pathname
\var
{
p
}
in a pair
\code
{
(
\var
{
head
}
,
\var
{
tail
}
)
}
,
where
\var
{
tail
}
is the last pathname component and
\var
{
head
}
is
everything leading up to that.
If
\var
{
p
}
ends in a slash (except if
it is the root), the trailing slash is removed and the operation
applied to the result; otherwise,
\code
{
join(
\var
{
head
}
,
\var
{
tail
}
)
}
equal
s
\var
{
p
}
. The
\var
{
tail
}
part never contains a slash. Some boundary
cases:
\
if
\var
{
p
}
is the root,
\var
{
head
}
equals
\var
{
p
}
and
\var
{
tail
}
is empty; if
\var
{
p
}
is empty, both
\var
{
head
}
and
\var
{
tail
}
are empty; if
\var
{
p
}
contains no slash,
\var
{
head
}
is
empty and
\var
{
tail
}
equals
\var
{
p
}
.
Split the pathname
\var
{
p
}
in a pair
\code
{
(
\var
{
head
}
,
\var
{
tail
}
)
}
,
where
\var
{
tail
}
is the last pathname component and
\var
{
head
}
is
everything leading up to that.
The
\var
{
tail
}
part will never contain
a slash; if
\var
{
p
}
ends in a slash,
\var
{
tail
}
will be empty. If
there is no slash in
\var
{
p
}
,
\var
{
head
}
will be empty. If
\var
{
p
}
i
s
empty, both
\var
{
head
}
and
\var
{
tail
}
are empty. Trailing slashes are
stripped from
\var
{
head
}
unless it is the root (one or more slashes
only). In nearly all cases,
\code
{
join(
\var
{
head
}
,
\var
{
tail
}
)
}
equals
\var
{
p
}
(the only exception being when there were multiple
slashes separating
\var
{
head
}
from
\var
{
tail
}
)
.
\end{funcdesc}
\begin{funcdesc}
{
splitext
}{
p
}
...
...
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