mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Issue #28088: Document Transport.set_protocol and get_protocol
This commit is contained in:
parent
c5420492cf
commit
1ea023e523
1 changed files with 13 additions and 0 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue