From: INADA Naoki Date: Fri, 4 Nov 2016 07:33:47 +0000 (+0900) Subject: Issue #28088: Document Transport.set_protocol and get_protocol X-Git-Tag: v3.6.0b4~155^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1ea023e523f484955fb81b59a72c586845d8d97f;p=python Issue #28088: Document Transport.set_protocol and get_protocol --- diff --git a/Doc/library/asyncio-protocol.rst b/Doc/library/asyncio-protocol.rst index 0deecd9ecc..873f8bbc90 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.