Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ _format_handle
Function
_format_handle
Lib/asyncio/base_events.py:73–79 ·
view source on GitHub ↗
(handle)
Source
from the content-addressed store, hash-verified
71
72
73
def
_format_handle(handle):
74
cb = handle._callback
75
if
isinstance(getattr(cb,
'__self__'
, None), tasks.Task):
76
# format the task
77
return
repr(cb.__self__)
78
else
:
79
return
str(handle)
80
81
82
def
_format_pipe(fd):
Callers
1
_run_once
Method · 0.85
Calls
1
str
Function · 0.85
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…