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
4e3ebe0b
Kaydet (Commit)
4e3ebe0b
authored
Ara 08, 2007
tarafından
Skip Montanaro
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Note that open() is the preferred way to open files (issue 1510).
üst
e40a6a85
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
fileobject.c
Objects/fileobject.c
+2
-1
bltinmodule.c
Python/bltinmodule.c
+2
-1
No files found.
Objects/fileobject.c
Dosyayı görüntüle @
4e3ebe0b
...
@@ -2065,7 +2065,8 @@ PyDoc_STR(
...
@@ -2065,7 +2065,8 @@ PyDoc_STR(
"opened for writing. Add a 'b' to the mode for binary files.
\n
"
"opened for writing. Add a 'b' to the mode for binary files.
\n
"
"Add a '+' to the mode to allow simultaneous reading and writing.
\n
"
"Add a '+' to the mode to allow simultaneous reading and writing.
\n
"
"If the buffering argument is given, 0 means unbuffered, 1 means line
\n
"
"If the buffering argument is given, 0 means unbuffered, 1 means line
\n
"
"buffered, and larger numbers specify the buffer size.
\n
"
"buffered, and larger numbers specify the buffer size. The preferred way
\n
"
"to open a file is with the builtin open() function.
\n
"
)
)
PyDoc_STR
(
PyDoc_STR
(
"Add a 'U' to mode to open the file for input with universal newline
\n
"
"Add a 'U' to mode to open the file for input with universal newline
\n
"
...
...
Python/bltinmodule.c
Dosyayı görüntüle @
4e3ebe0b
...
@@ -1357,7 +1357,8 @@ builtin_open(PyObject *self, PyObject *args, PyObject *kwds)
...
@@ -1357,7 +1357,8 @@ builtin_open(PyObject *self, PyObject *args, PyObject *kwds)
PyDoc_STRVAR
(
open_doc
,
PyDoc_STRVAR
(
open_doc
,
"open(name[, mode[, buffering]]) -> file object
\n
\
"open(name[, mode[, buffering]]) -> file object
\n
\
\n
\
\n
\
Open a file using the file() type, returns a file object."
);
Open a file using the file() type, returns a file object. This is the
\n
\
preferred way to open a file."
);
static
PyObject
*
static
PyObject
*
...
...
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