diff options
author | INADA Naoki <songofacandy@gmail.com> | 2016-11-04 07:35:31 (GMT) |
---|---|---|
committer | INADA Naoki <songofacandy@gmail.com> | 2016-11-04 07:35:31 (GMT) |
commit | 2f6d201ea3e0291de7ea0c89c6a07a519d04f79d (patch) | |
tree | 1d1dbec112703e2b3f4caad395e4ed15f499116d /Doc/library | |
parent | d4ef9d3feb81e07622dafe0eabf535cf0c525d27 (diff) | |
parent | 4b8eb7b8b4d2d4c2c900f0931d475ffa951d3215 (diff) | |
download | cpython-2f6d201ea3e0291de7ea0c89c6a07a519d04f79d.zip cpython-2f6d201ea3e0291de7ea0c89c6a07a519d04f79d.tar.gz cpython-2f6d201ea3e0291de7ea0c89c6a07a519d04f79d.tar.bz2 |
Issue #28088: Document Transport.set_protocol and get_protocol.
Patch by Mariatta Wijaya.
Diffstat (limited to 'Doc/library')
-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. |