MCPcopy 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
73def _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
82def _format_pipe(fd):

Callers 1

_run_onceMethod · 0.85

Calls 1

strFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…