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
b2462e2b
Kaydet (Commit)
b2462e2b
authored
Haz 24, 2012
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Minor clarification about fdopen().
üst
b8f2d29e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
os.rst
Doc/library/os.rst
+10
-9
No files found.
Doc/library/os.rst
Dosyayı görüntüle @
b2462e2b
...
@@ -600,15 +600,16 @@ process and user.
...
@@ -600,15 +600,16 @@ process and user.
File Object Creation
File Object Creation
--------------------
--------------------
These functions create new :term:`file objects <file object>`. (See also :func:`open`.)
These functions create new :term:`file objects <file object>`. (See also
:func:`~os.open` for opening file descriptors.)
.. function:: fdopen(fd, *args, **kwargs)
.. function:: fdopen(fd, *args, **kwargs)
Return an open file object connected to the file descriptor *fd*.
Return an open file object connected to the file descriptor *fd*.
This is an
This is an alias of :func:`open`
and accepts the same arguments.
alias of the :func:`open` built-in function
and accepts the same arguments.
The only difference is that the first argument of :func:`fdopen`
The only difference is that the first argument of :func:`fdopen`
must always
must always
be an integer.
be an integer.
.. _os-fd-ops:
.. _os-fd-ops:
...
@@ -952,10 +953,10 @@ as internal buffering of data.
...
@@ -952,10 +953,10 @@ as internal buffering of data.
.. note::
.. note::
This function is intended for low-level I/O and must be applied to a file
This function is intended for low-level I/O and must be applied to a file
descriptor as returned by :func:`os.open` or :func:`pipe`. To read a
"file object"
descriptor as returned by :func:`os.open` or :func:`pipe`. To read a
returned by the built-in function :func:`open` or by :func:`popen` or
"file object" returned by the built-in function :func:`open` or by
:func:`
fdopen`, or :data:`sys.stdin`, use its :meth:`~file.read` or
:func:`
popen` or :func:`fdopen`, or :data:`sys.stdin`, use its
:meth:`~file.readline` methods.
:meth:`~file.read
` or :meth:`~file.read
line` methods.
.. function:: sendfile(out, in, offset, nbytes)
.. function:: sendfile(out, in, offset, nbytes)
...
...
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