diff options
author | INADA Naoki <songofacandy@gmail.com> | 2016-11-04 07:34:46 (GMT) |
---|---|---|
committer | INADA Naoki <songofacandy@gmail.com> | 2016-11-04 07:34:46 (GMT) |
commit | 4b8eb7b8b4d2d4c2c900f0931d475ffa951d3215 (patch) | |
tree | 5705f71aa0b9c1f570ed3a63ca3cf51b98bc4122 /Doc/library | |
parent | 1d8f755e67dfb758e9bb41f9c944b0319e201513 (diff) | |
parent | 1ea023e523f484955fb81b59a72c586845d8d97f (diff) | |
download | cpython-4b8eb7b8b4d2d4c2c900f0931d475ffa951d3215.zip cpython-4b8eb7b8b4d2d4c2c900f0931d475ffa951d3215.tar.gz cpython-4b8eb7b8b4d2d4c2c900f0931d475ffa951d3215.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. |