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
4adb288f
Kaydet (Commit)
4adb288f
authored
Ock 04, 2010
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #7631: Fix undefined references to the "built-in file object", which
has ceased to be.
üst
6e40e27e
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
28 deletions
+26
-28
filesys.rst
Doc/library/filesys.rst
+4
-5
socket.rst
Doc/library/socket.rst
+7
-5
tokenize.rst
Doc/library/tokenize.rst
+2
-3
datamodel.rst
Doc/reference/datamodel.rst
+13
-10
cmdline.rst
Doc/using/cmdline.rst
+0
-5
No files found.
Doc/library/filesys.rst
Dosyayı görüntüle @
4adb288f
...
@@ -26,14 +26,13 @@ in this chapter is:
...
@@ -26,14 +26,13 @@ in this chapter is:
.. seealso::
.. seealso::
Section :ref:`bltin-file-objects`
A description of Python's built-in file objects.
Module :mod:`os`
Module :mod:`os`
Operating system interfaces, including functions to work with files at a lower
Operating system interfaces, including functions to work with files at a lower
level than the built-in file object.
level than the built-in file object.
Module :mod:`io`
Module :mod:`io`
Python's
framework for dealing with I/O including reading and writing
Python's
built-in I/O library, including both abstract classes and
files
.
some concrete classes such as file I/O
.
Built-in function :func:`open`
The standard way to open files for reading and writing with Python.
Doc/library/socket.rst
Dosyayı görüntüle @
4adb288f
...
@@ -575,14 +575,16 @@ correspond to Unix system calls applicable to sockets.
...
@@ -575,14 +575,16 @@ correspond to Unix system calls applicable to sockets.
.. index:: single: I/O control; buffering
.. index:: single: I/O control; buffering
Return a :dfn:`file object` associated with the socket. (File objects are
Return a :dfn:`file object` associated with the socket. The exact
described in :ref:`bltin-file-objects`.) The file object references a
returned type depends on the arguments given to :meth:`makefile`. These
:cfunc:`dup`\ ped version of the socket file descriptor, so the file object
and socket object may be closed or garbage-collected independently. The
socket must be in blocking mode (it can not have a timeout). The optional
arguments are interpreted the same way as by the built-in :func:`open`
arguments are interpreted the same way as by the built-in :func:`open`
function.
function.
The returned file object references a :cfunc:`dup`\ ped version of the
socket file descriptor, so the file object and socket object may be
closed or garbage-collected independently. The socket must be in
blocking mode (it can not have a timeout).
.. method:: socket.recv(bufsize[, flags])
.. method:: socket.recv(bufsize[, flags])
...
...
Doc/library/tokenize.rst
Dosyayı görüntüle @
4adb288f
...
@@ -18,9 +18,8 @@ The primary entry point is a :term:`generator`:
...
@@ -18,9 +18,8 @@ The primary entry point is a :term:`generator`:
The :func:`tokenize` generator requires one argument, *readline*, which
The :func:`tokenize` generator requires one argument, *readline*, which
must be a callable object which provides the same interface as the
must be a callable object which provides the same interface as the
:meth:`readline` method of built-in file objects (see section
:meth:`io.IOBase.readline` method of file objects. Each call to the
:ref:`bltin-file-objects`). Each call to the function should return one
function should return one line of input as bytes.
line of input as bytes.
The generator produces 5-tuples with these members: the token type; the
The generator produces 5-tuples with these members: the token type; the
token string; a 2-tuple ``(srow, scol)`` of ints specifying the row and
token string; a 2-tuple ``(srow, scol)`` of ints specifying the row and
...
...
Doc/reference/datamodel.rst
Dosyayı görüntüle @
4adb288f
...
@@ -767,10 +767,10 @@ Class instances
...
@@ -767,10 +767,10 @@ Class instances
Special attributes: :attr:`__dict__` is the attribute dictionary;
Special attributes: :attr:`__dict__` is the attribute dictionary;
:attr:`__class__` is the instance's class.
:attr:`__class__` is the instance's class.
Files
I/O objects (also known as file objects)
.. index::
.. index::
object: file
builtin: open
builtin: open
module: io
single: popen() (in module os)
single: popen() (in module os)
single: makefile() (socket method)
single: makefile() (socket method)
single: sys.stdin
single: sys.stdin
...
@@ -781,14 +781,17 @@ Files
...
@@ -781,14 +781,17 @@ Files
single: stdout (in module sys)
single: stdout (in module sys)
single: stderr (in module sys)
single: stderr (in module sys)
A file object represents an open file. File objects are created by the
A file object represents an open file. Various shortcuts are available
:func:`open` built-in function, and also by :func:`os.popen`,
to create file objects: the :func:`open` built-in function, and also
:func:`os.fdopen`, and the :meth:`makefile` method of socket objects (and
:func:`os.popen`, :func:`os.fdopen`, and the :meth:`makefile` method
perhaps by other functions or methods provided by extension modules). The
of socket objects (and perhaps by other functions or methods provided
objects ``sys.stdin``, ``sys.stdout`` and ``sys.stderr`` are initialized to
by extension modules).
file objects corresponding to the interpreter's standard input, output and
error streams. See :ref:`bltin-file-objects` for complete documentation of
The objects ``sys.stdin``, ``sys.stdout`` and ``sys.stderr`` are
file objects.
initialized to file objects corresponding to the interpreter's standard
input, output and error streams; they are all open in text mode and
therefore follow the interface defined by the :class:`io.TextIOBase`
abstract class.
Internal types
Internal types
.. index::
.. index::
...
...
Doc/using/cmdline.rst
Dosyayı görüntüle @
4adb288f
...
@@ -235,11 +235,6 @@ Miscellaneous options
...
@@ -235,11 +235,6 @@ Miscellaneous options
Force stdin, stdout and stderr to be totally unbuffered. On systems where it
Force stdin, stdout and stderr to be totally unbuffered. On systems where it
matters, also put stdin, stdout and stderr in binary mode.
matters, also put stdin, stdout and stderr in binary mode.
Note that there is internal buffering in :meth:`file.readlines` and
:ref:`bltin-file-objects` (``for line in sys.stdin``) which is not influenced
by this option. To work around this, you will want to use
:meth:`file.readline` inside a ``while 1:`` loop.
See also :envvar:`PYTHONUNBUFFERED`.
See also :envvar:`PYTHONUNBUFFERED`.
...
...
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