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
72b83c86
Kaydet (Commit)
72b83c86
authored
Ock 07, 2005
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SF patch 1094011: Docs for file() vs open().
üst
bccc9a95
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
libfuncs.tex
Doc/lib/libfuncs.tex
+6
-3
No files found.
Doc/lib/libfuncs.tex
Dosyayı görüntüle @
72b83c86
...
...
@@ -416,9 +416,12 @@ class C:
after any I/O has been performed, and there's no reliable way to
determine whether this is the case.
}
The
\function
{
file()
}
constructor is new in Python 2.2. The previous
spelling,
\function
{
open()
}
, is retained for compatibility, and is an
alias for
\function
{
file()
}
.
The
\function
{
file()
}
constructor is new in Python 2.2 and is an
alias for
\function
{
open()
}
. Both spellings are equivalent. The
intent is for
\function
{
open()
}
to continue to be preferred for use
as a factory function which returns a new
\class
{
file
}
object. The
spelling,
\class
{
file
}
is more suited to type testing (for example,
writing
\samp
{
isinstance(f, file)
}
).
\end{funcdesc}
\begin{funcdesc}
{
filter
}{
function, list
}
...
...
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