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
e79be877
Kaydet (Commit)
e79be877
authored
Agu 16, 2013
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #18743: Fix references to non-existant "StringIO" module.
üst
ec34ab50
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
8 deletions
+8
-8
typeobj.rst
Doc/c-api/typeobj.rst
+1
-1
gzip.rst
Doc/library/gzip.rst
+1
-1
mailbox.rst
Doc/library/mailbox.rst
+2
-2
tempfile.rst
Doc/library/tempfile.rst
+1
-1
unittest.mock.rst
Doc/library/unittest.mock.rst
+2
-2
xml.dom.minidom.rst
Doc/library/xml.dom.minidom.rst
+1
-1
No files found.
Doc/c-api/typeobj.rst
Dosyayı görüntüle @
e79be877
...
@@ -192,7 +192,7 @@ type objects) *must* have the :attr:`ob_size` field.
...
@@ -192,7 +192,7 @@ type objects) *must* have the :attr:`ob_size` field.
An optional pointer to the instance print function.
An optional pointer to the instance print function.
The print function is only called when the instance is printed to a *real* file;
The print function is only called when the instance is printed to a *real* file;
when it is printed to a pseudo-file (like a :class:`StringIO` instance), the
when it is printed to a pseudo-file (like a :class:`
io.
StringIO` instance), the
instance's :c:member:`~PyTypeObject.tp_repr` or :c:member:`~PyTypeObject.tp_str` function is called to convert it to
instance's :c:member:`~PyTypeObject.tp_repr` or :c:member:`~PyTypeObject.tp_str` function is called to convert it to
a string. These are also called when the type's :c:member:`~PyTypeObject.tp_print` field is
a string. These are also called when the type's :c:member:`~PyTypeObject.tp_print` field is
*NULL*. A type should never implement :c:member:`~PyTypeObject.tp_print` in a way that produces
*NULL*. A type should never implement :c:member:`~PyTypeObject.tp_print` in a way that produces
...
...
Doc/library/gzip.rst
Dosyayı görüntüle @
e79be877
...
@@ -62,7 +62,7 @@ The module defines the following items:
...
@@ -62,7 +62,7 @@ The module defines the following items:
value.
value.
The new class instance is based on *fileobj*, which can be a regular file, a
The new class instance is based on *fileobj*, which can be a regular file, a
:class:`
String
IO` object, or any other object which simulates a file. It
:class:`
io.Bytes
IO` object, or any other object which simulates a file. It
defaults to ``None``, in which case *filename* is opened to provide a file
defaults to ``None``, in which case *filename* is opened to provide a file
object.
object.
...
...
Doc/library/mailbox.rst
Dosyayı görüntüle @
e79be877
...
@@ -674,8 +674,8 @@ Supported mailbox formats are Maildir, mbox, MH, Babyl, and MMDF.
...
@@ -674,8 +674,8 @@ Supported mailbox formats are Maildir, mbox, MH, Babyl, and MMDF.
In Babyl mailboxes, the headers of a message are not stored contiguously
In Babyl mailboxes, the headers of a message are not stored contiguously
with the body of the message. To generate a file-like representation, the
with the body of the message. To generate a file-like representation, the
headers and body are copied together into a :class:`
StringIO` instance
headers and body are copied together into a :class:`
io.BytesIO` instance,
(from the :mod:`StringIO` module),
which has an API identical to that of a
which has an API identical to that of a
file. As a result, the file-like object is truly independent of the
file. As a result, the file-like object is truly independent of the
underlying mailbox but does not save memory compared to a string
underlying mailbox but does not save memory compared to a string
representation.
representation.
...
...
Doc/library/tempfile.rst
Dosyayı görüntüle @
e79be877
...
@@ -82,7 +82,7 @@ The module defines the following user-callable items:
...
@@ -82,7 +82,7 @@ The module defines the following user-callable items:
causes the file to roll over to an on-disk file regardless of its size.
causes the file to roll over to an on-disk file regardless of its size.
The returned object is a file-like object whose :attr:`_file` attribute
The returned object is a file-like object whose :attr:`_file` attribute
is either a :class:`
BytesIO` or :class:`
StringIO` object (depending on
is either a :class:`
io.BytesIO` or :class:`io.
StringIO` object (depending on
whether binary or text *mode* was specified) or a true file
whether binary or text *mode* was specified) or a true file
object, depending on whether :func:`rollover` has been called. This
object, depending on whether :func:`rollover` has been called. This
file-like object can be used in a :keyword:`with` statement, just like
file-like object can be used in a :keyword:`with` statement, just like
...
...
Doc/library/unittest.mock.rst
Dosyayı görüntüle @
e79be877
...
@@ -1084,9 +1084,9 @@ you wanted a :class:`NonCallableMock` to be used:
...
@@ -1084,9 +1084,9 @@ you wanted a :class:`NonCallableMock` to be used:
...
...
TypeError: 'NonCallableMock' object is not callable
TypeError: 'NonCallableMock' object is not callable
Another use case might be to replace an object with a `StringIO` instance:
Another use case might be to replace an object with a `
io.
StringIO` instance:
>>> from
StringIO
import StringIO
>>> from
io
import StringIO
>>> def foo():
>>> def foo():
... print 'Something'
... print 'Something'
...
...
...
...
Doc/library/xml.dom.minidom.rst
Dosyayı görüntüle @
e79be877
...
@@ -55,7 +55,7 @@ instead:
...
@@ -55,7 +55,7 @@ instead:
.. function:: parseString(string, parser=None)
.. function:: parseString(string, parser=None)
Return a :class:`Document` that represents the *string*. This method creates a
Return a :class:`Document` that represents the *string*. This method creates a
:class:`StringIO` object for the string and passes that on to :func:`parse`.
:class:`
io.
StringIO` object for the string and passes that on to :func:`parse`.
Both functions return a :class:`Document` object representing the content of the
Both functions return a :class:`Document` object representing the content of the
document.
document.
...
...
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