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
9efcc4b3
Kaydet (Commit)
9efcc4b3
authored
Nis 14, 2008
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix problems in the io docs noted by Alexandre Vassalotti
üst
e0313f20
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
9 deletions
+6
-9
io.rst
Doc/library/io.rst
+2
-2
io.py
Lib/io.py
+4
-7
No files found.
Doc/library/io.rst
Dosyayı görüntüle @
9efcc4b3
...
...
@@ -437,12 +437,12 @@ Buffered Streams
.. method:: read1()
In :class:`BytesIO`, this is the same as :meth:`read
()
`.
In :class:`BytesIO`, this is the same as :meth:`read`.
.. method:: truncate([pos])
Truncate the file to at most *pos* bytes. *pos* defaults to the current
stream position, as returned by :meth:`tell
()
`.
stream position, as returned by :meth:`tell`.
.. class:: BufferedReader(raw[, buffer_size])
...
...
Lib/io.py
Dosyayı görüntüle @
9efcc4b3
"""
The io module provides the Python interfaces to stream handling. The
"""The io module provides the Python interfaces to stream handling. The
builtin open function is defined in this module.
At the top of the I/O hierarchy is the abstract base class IOBase. It
...
...
@@ -78,8 +77,7 @@ class BlockingIOError(IOError):
def
open
(
file
,
mode
=
"r"
,
buffering
=
None
,
encoding
=
None
,
errors
=
None
,
newline
=
None
,
closefd
=
True
):
r"""
Open file and return a stream. If the file cannot be opened, an
r"""Open file and return a stream. If the file cannot be opened, an
IOError is raised.
file is either a string giving the name (and the path if the file
...
...
@@ -287,8 +285,7 @@ class UnsupportedOperation(ValueError, IOError):
class
IOBase
(
metaclass
=
abc
.
ABCMeta
):
"""
The abstract base class for all I/O classes, acting on streams of
"""The abstract base class for all I/O classes, acting on streams of
bytes. There is no public constructor.
This class provides dummy implementations for many methods that
...
...
@@ -793,7 +790,7 @@ class BytesIO(BufferedIOBase):
return
bytes
(
b
)
def
read1
(
self
,
n
):
"""
In BytesIO, t
his is the same as read.
"""
T
his is the same as read.
"""
return
self
.
read
(
n
)
...
...
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