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
0b65b0fc
Kaydet (Commit)
0b65b0fc
authored
Eyl 15, 2010
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add a glossary entry for file objects.
üst
5aa0d105
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
4 deletions
+21
-4
glossary.rst
Doc/glossary.rst
+17
-0
socket.rst
Doc/library/socket.rst
+1
-1
datamodel.rst
Doc/reference/datamodel.rst
+3
-3
No files found.
Doc/glossary.rst
Dosyayı görüntüle @
0b65b0fc
...
@@ -184,6 +184,23 @@ Glossary
...
@@ -184,6 +184,23 @@ Glossary
A module written in C or C++, using Python's C API to interact with the core and
A module written in C or C++, using Python's C API to interact with the core and
with user code.
with user code.
file object
An object exposing a file-oriented API (with methods such as
:meth:`read()` or :meth:`write()`) to an underlying resource.
Depending on the way it was created, a file object can mediate access
to a real on-disk file or to another other type of storage or
communication device (for example standard input/output, in-memory
buffers, sockets, pipes, etc.). File objects are also called
:dfn:`file-like objects` or :dfn:`streams`.
There are actually three categories of file objects: raw binary
files, buffered binary files and text files. Their interfaces are
defined in the :mod:`io` module. The canonical way to create a
file object is by using the :func:`open` function.
file-like object
A synonym for :term:`file object`.
finder
finder
An object that tries to find the :term:`loader` for a module. It must
An object that tries to find the :term:`loader` for a module. It must
implement a method named :meth:`find_module`. See :pep:`302` for
implement a method named :meth:`find_module`. See :pep:`302` for
...
...
Doc/library/socket.rst
Dosyayı görüntüle @
0b65b0fc
...
@@ -617,7 +617,7 @@ correspond to Unix system calls applicable to sockets.
...
@@ -617,7 +617,7 @@ 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. The exact
Return a :
term
:`file object` associated with the socket. The exact
returned type depends on the arguments given to :meth:`makefile`. These
returned type depends on the arguments given to :meth:`makefile`. These
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.
...
...
Doc/reference/datamodel.rst
Dosyayı görüntüle @
0b65b0fc
...
@@ -781,9 +781,9 @@ I/O objects (also known as file objects)
...
@@ -781,9 +781,9 @@ I/O objects (also known as file objects)
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. Various shortcuts are availabl
e
A
:term:`file object` represents an open file. Various shortcuts ar
e
to create file objects: the :func:`open` built-in function, and also
available to create file objects: the :func:`open` built-in function, and
:func:`os.popen`, :func:`os.fdopen`, and the :meth:`makefile` method
also
:func:`os.popen`, :func:`os.fdopen`, and the :meth:`makefile` method
of socket objects (and perhaps by other functions or methods provided
of socket objects (and perhaps by other functions or methods provided
by extension modules).
by extension modules).
...
...
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