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
a5b257af
Kaydet (Commit)
a5b257af
authored
May 28, 2014
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #21454: Fix asyncio.BaseEventLoop.connect_read_pipe doc
The function sets the the pipe to non-blocking mode.
üst
28d0ae48
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
asyncio-eventloop.rst
Doc/library/asyncio-eventloop.rst
+3
-3
events.py
Lib/asyncio/events.py
+3
-3
No files found.
Doc/library/asyncio-eventloop.rst
Dosyayı görüntüle @
a5b257af
...
@@ -455,11 +455,11 @@ Connect pipes
...
@@ -455,11 +455,11 @@ Connect pipes
.. method:: BaseEventLoop.connect_read_pipe(protocol_factory, pipe)
.. method:: BaseEventLoop.connect_read_pipe(protocol_factory, pipe)
Register read pipe in eventloop.
Register read pipe in eventloop.
Set the *pipe* to non-blocking mode.
*protocol_factory* should instantiate object with :class:`Protocol`
*protocol_factory* should instantiate object with :class:`Protocol`
interface.
pipe is file-like object already switched to nonblocking
.
interface.
*pipe* is a :term:`file-like object <file object>`
.
Return pair
(transport, protocol), where transport support
Return pair
``(transport, protocol)``, where *transport* supports the
:class:`ReadTransport` interface.
:class:`ReadTransport` interface.
This method is a :ref:`coroutine <coroutine>`.
This method is a :ref:`coroutine <coroutine>`.
...
...
Lib/asyncio/events.py
Dosyayı görüntüle @
a5b257af
...
@@ -257,11 +257,11 @@ class AbstractEventLoop:
...
@@ -257,11 +257,11 @@ class AbstractEventLoop:
# Pipes and subprocesses.
# Pipes and subprocesses.
def
connect_read_pipe
(
self
,
protocol_factory
,
pipe
):
def
connect_read_pipe
(
self
,
protocol_factory
,
pipe
):
"""Register read pipe in event loop.
"""Register read pipe in event loop.
Set the pipe to non-blocking mode.
protocol_factory should instantiate object with Protocol interface.
protocol_factory should instantiate object with Protocol interface.
pipe is
file-like object already switched to nonblocking
.
pipe is
a file-like object
.
Return pair (transport, protocol), where transport support
Return pair (transport, protocol), where transport support
s the
ReadTransport interface."""
ReadTransport interface."""
# The reason to accept file-like object instead of just file descriptor
# The reason to accept file-like object instead of just file descriptor
# is: we need to own pipe and close it at transport finishing
# is: we need to own pipe and close it at transport finishing
...
...
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