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
5cc583d9
Kaydet (Commit)
5cc583d9
authored
Eyl 16, 2018
tarafından
Bumsik Kim
Kaydeden (comit)
Yury Selivanov
Eyl 16, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-33649: Clarify protocol_factory as a method parameter (GH-9330)
üst
7843caeb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
asyncio-eventloop.rst
Doc/library/asyncio-eventloop.rst
+17
-4
No files found.
Doc/library/asyncio-eventloop.rst
Dosyayı görüntüle @
5cc583d9
...
...
@@ -535,6 +535,9 @@ Creating network servers
Arguments:
* *protocol_factory* must be a callable returning a
:ref:`protocol <asyncio-protocol>` implementation.
* The *host* parameter can be set to several types which determine behavior:
- If *host* is a string, the TCP server is bound to *host* and *port*.
- if *host* is a sequence of strings, the TCP server is bound to all
...
...
@@ -617,6 +620,9 @@ Creating network servers
:class:`str`, :class:`bytes`, and :class:`~pathlib.Path` paths
are supported.
See the documentation of the :meth:`loop.create_server` method
for information about arguments to this method.
Availability: UNIX.
.. versionadded:: 3.7
...
...
@@ -637,6 +643,9 @@ Creating network servers
Parameters:
* *protocol_factory* must be a callable returning a
:ref:`protocol <asyncio-protocol>` implementation.
* *sock* is a preexisting socket object returned from
:meth:`socket.accept <socket.socket.accept>`.
...
...
@@ -909,7 +918,8 @@ Working with pipes
*pipe* is a :term:`file-like object <file object>`.
Return pair ``(transport, protocol)``, where *transport* supports
the :class:`ReadTransport` interface.
the :class:`ReadTransport` interface and *protocol* is an object
instantiated by the *protocol_factory*.
With :class:`SelectorEventLoop` event loop, the *pipe* is set to
non-blocking mode.
...
...
@@ -924,7 +934,8 @@ Working with pipes
*pipe* is :term:`file-like object <file object>`.
Return pair ``(transport, protocol)``, where *transport* supports
:class:`WriteTransport` interface.
:class:`WriteTransport` interface and *protocol* is an object
instantiated by the *protocol_factory*.
With :class:`SelectorEventLoop` event loop, the *pipe* is set to
non-blocking mode.
...
...
@@ -1159,7 +1170,8 @@ async/await code consider using high-level convenient
for documentation on other arguments.
Returns a pair of ``(transport, protocol)``, where *transport*
conforms to the :class:`asyncio.SubprocessTransport` base class.
conforms to the :class:`asyncio.SubprocessTransport` base class and
*protocol* is an object instantiated by the *protocol_factory*.
.. coroutinemethod:: loop.subprocess_shell(protocol_factory, cmd, \*, \
stdin=subprocess.PIPE, stdout=subprocess.PIPE, \
...
...
@@ -1180,7 +1192,8 @@ async/await code consider using high-level convenient
the remaining arguments.
Returns a pair of ``(transport, protocol)``, where *transport*
conforms to the :class:`SubprocessTransport` base class.
conforms to the :class:`SubprocessTransport` base class and
*protocol* is an object instantiated by the *protocol_factory*.
.. note::
It is the application's responsibility to ensure that all whitespace
...
...
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