diff options
author | INADA Naoki <songofacandy@gmail.com> | 2016-11-04 07:33:47 (GMT) |
---|---|---|
committer | INADA Naoki <songofacandy@gmail.com> | 2016-11-04 07:33:47 (GMT) |
commit | 1ea023e523f484955fb81b59a72c586845d8d97f (patch) | |
tree | 6036c3ea48839573db5227d97ef18695491a8f9c | |
parent | c5420492cf367a4224174c5595a4c8a2d059136c (diff) | |
download | cpython-1ea023e523f484955fb81b59a72c586845d8d97f.zip cpython-1ea023e523f484955fb81b59a72c586845d8d97f.tar.gz cpython-1ea023e523f484955fb81b59a72c586845d8d97f.tar.bz2 |
Issue #28088: Document Transport.set_protocol and get_protocol
-rw-r--r-- | Doc/library/asyncio-protocol.rst | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Doc/library/asyncio-protocol.rst b/Doc/library/asyncio-protocol.rst index 0deecd9..873f8bb 100644 --- a/Doc/library/asyncio-protocol.rst +++ b/Doc/library/asyncio-protocol.rst @@ -87,6 +87,19 @@ BaseTransport - ``'subprocess'``: :class:`subprocess.Popen` instance + .. method:: set_protocol(self, protocol) + + Set a new protocol. Switching protocol should only be done when both + protocols are documented to support the switch. + + .. versionadded:: 3.6.0 + + .. method:: get_protocol(self) + + Return the current protocol. + + .. versionadded:: 3.6.0 + .. versionchanged:: 3.5.1 ``'ssl_object'`` info was added to SSL sockets. |