[Python-checkins] cpython (3.5): Issue #28088: Document Transport.set_protocol and get_protocol

inada.naoki python-checkins at python.org
Fri Nov 4 03:35:43 EDT 2016


https://hg.python.org/cpython/rev/3f5af4a25995
changeset:   104901:3f5af4a25995
branch:      3.5
parent:      104896:c28c053c607a
user:        INADA Naoki <songofacandy at gmail.com>
date:        Fri Nov 04 16:33:47 2016 +0900
summary:
  Issue #28088: Document Transport.set_protocol and get_protocol

files:
  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
--- a/Doc/library/asyncio-protocol.rst
+++ b/Doc/library/asyncio-protocol.rst
@@ -87,6 +87,19 @@
 
         - ``'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.
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list