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
616453c1
Kaydet (Commit)
616453c1
authored
Eyl 06, 2010
tarafından
Amaury Forgeot d'Arc
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
More docstring updates
üst
ada99488
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
_pyio.py
Lib/_pyio.py
+2
-1
iobase.c
Modules/_io/iobase.c
+5
-4
No files found.
Lib/_pyio.py
Dosyayı görüntüle @
616453c1
...
...
@@ -264,7 +264,8 @@ class IOBase(metaclass=abc.ABCMeta):
Even though IOBase does not declare read, readinto, or write because
their signatures will vary, implementations and clients should
consider those methods part of the interface. Also, implementations
may raise a IOError when operations they do not support are called.
may raise UnsupportedOperation when operations they do not support are
called.
The basic type used for binary data read from or written to a file is
bytes. bytearrays are accepted too, and in some cases (such as
...
...
Modules/_io/iobase.c
Dosyayı görüntüle @
616453c1
...
...
@@ -35,7 +35,8 @@ PyDoc_STRVAR(iobase_doc,
"Even though IOBase does not declare read, readinto, or write because
\n
"
"their signatures will vary, implementations and clients should
\n
"
"consider those methods part of the interface. Also, implementations
\n
"
"may raise a IOError when operations they do not support are called.
\n
"
"may raise UnsupportedOperation when operations they do not support are
\n
"
"called.
\n
"
"
\n
"
"The basic type used for binary data read from or written to a file is
\n
"
"bytes. bytearrays are accepted too, and in some cases (such as
\n
"
...
...
@@ -300,7 +301,7 @@ iobase_dealloc(iobase *self)
PyDoc_STRVAR
(
iobase_seekable_doc
,
"Return whether object supports random access.
\n
"
"
\n
"
"If False, seek(), tell() and truncate() will raise
IOError
.
\n
"
"If False, seek(), tell() and truncate() will raise
UnsupportedOperation
.
\n
"
"This method may need to do a test seek()."
);
static
PyObject
*
...
...
@@ -329,7 +330,7 @@ _PyIOBase_check_seekable(PyObject *self, PyObject *args)
PyDoc_STRVAR
(
iobase_readable_doc
,
"Return whether object was opened for reading.
\n
"
"
\n
"
"If False, read() will raise
IOError
."
);
"If False, read() will raise
UnsupportedOperation
."
);
static
PyObject
*
iobase_readable
(
PyObject
*
self
,
PyObject
*
args
)
...
...
@@ -358,7 +359,7 @@ _PyIOBase_check_readable(PyObject *self, PyObject *args)
PyDoc_STRVAR
(
iobase_writable_doc
,
"Return whether object was opened for writing.
\n
"
"
\n
"
"If False,
read() will raise IOError
."
);
"If False,
write() will raise UnsupportedOperation
."
);
static
PyObject
*
iobase_writable
(
PyObject
*
self
,
PyObject
*
args
)
...
...
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