Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ set_protocol
Method
set_protocol
Lib/asyncio/transports.py:37–39 ·
view source on GitHub ↗
Set a new protocol.
(self, protocol)
Source
from the content-addressed store, hash-verified
35
raise
NotImplementedError
36
37
def
set_protocol(self, protocol):
38
""
"Set a new protocol."
""
39
raise
NotImplementedError
40
41
def
get_protocol(self):
42
""
"Return the current protocol."
""
Callers
7
__init__
Method · 0.45
restore
Method · 0.45
start_tls
Method · 0.45
test_proto_type_switch
Method · 0.45
client
Method · 0.45
test_set_new_app_protocol
Method · 0.45
client
Method · 0.45
Calls
no outgoing calls
Tested by
4
test_proto_type_switch
Method · 0.36
client
Method · 0.36
test_set_new_app_protocol
Method · 0.36
client
Method · 0.36