]> granicus.if.org Git - python/commitdiff
Issue #28088: Document Transport.set_protocol and get_protocol
authorINADA Naoki <songofacandy@gmail.com>
Fri, 4 Nov 2016 07:33:47 +0000 (16:33 +0900)
committerINADA Naoki <songofacandy@gmail.com>
Fri, 4 Nov 2016 07:33:47 +0000 (16:33 +0900)
Doc/library/asyncio-protocol.rst

index 0deecd9ecc7942fdbd3eb8e5bde37a411db26f11..873f8bbc90a46c9cfc0bf96c2e56de6bfc72132a 100644 (file)
@@ -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.