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
6540a82a
Kaydet (Commit)
6540a82a
authored
Mar 12, 2010
tarafından
Ezio Melotti
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#8057: fix strings -> byte strings
üst
9920437a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
bz2.rst
Doc/library/bz2.rst
+12
-10
No files found.
Doc/library/bz2.rst
Dosyayı görüntüle @
6540a82a
...
...
@@ -73,15 +73,16 @@ Handling of compressed files is offered by the :class:`BZ2File` class.
.. method:: read([size])
Read at most *size* uncompressed bytes, returned as a string. If the
Read at most *size* uncompressed bytes, returned as a
byte
string. If the
*size* argument is negative or omitted, read until EOF is reached.
.. method:: readline([size])
Return the next line from the file, as a string, retaining newline. A
non-negative *size* argument limits the maximum number of bytes to return
(an incomplete line may be returned then). Return an empty string at EOF.
Return the next line from the file, as a byte string, retaining newline.
A non-negative *size* argument limits the maximum number of bytes to
return (an incomplete line may be returned then). Return an empty byte
string at EOF.
.. method:: readlines([size])
...
...
@@ -111,15 +112,16 @@ Handling of compressed files is offered by the :class:`BZ2File` class.
.. method:: write(data)
Write string *data* to file. Note that due to buffering, :meth:`close` may
be needed before the file on disk reflects the data written.
Write the byte string *data* to file. Note that due to buffering,
:meth:`close` may be needed before the file on disk reflects the data
written.
.. method:: writelines(sequence_of_strings)
.. method:: writelines(sequence_of_
byte_
strings)
Write the sequence of strings to the file. Note that newlines are not
added. The sequence can be any iterable object producing
strings. This is
equivalent to calling write() for each
string.
Write the sequence of
byte
strings to the file. Note that newlines are not
added. The sequence can be any iterable object producing
byte strings.
This is equivalent to calling write() for each byte
string.
Sequential (de)compression
...
...
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