[Python-checkins] cpython (merge 3.5 -> 3.6): Issue #28088: Document Transport.set_protocol and get_protocol.
inada.naoki
python-checkins at python.org
Fri Nov 4 03:35:39 EDT 2016
https://hg.python.org/cpython/rev/a5e52b7be71f
changeset: 104902:a5e52b7be71f
branch: 3.6
parent: 104899:1f750fff788e
parent: 104901:3f5af4a25995
user: INADA Naoki <songofacandy at gmail.com>
date: Fri Nov 04 16:34:46 2016 +0900
summary:
Issue #28088: Document Transport.set_protocol and get_protocol.
Patch by Mariatta Wijaya.
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