MCPcopy Index your code
hub / github.com/python/cpython / __init__

Method __init__

Lib/asyncio/events.py:41–54  ·  view source on GitHub ↗
(self, callback, args, loop, context=None)

Source from the content-addressed store, hash-verified

39 '_context')
40
41 def __init__(self, callback, args, loop, context=None):
42 if context is None:
43 context = contextvars.copy_context()
44 self._context = context
45 self._loop = loop
46 self._callback = callback
47 self._args = args
48 self._cancelled = False
49 self._repr = None
50 if self._loop.get_debug():
51 self._source_traceback = format_helpers.extract_stack(
52 sys._getframe(1))
53 else:
54 self._source_traceback = None
55
56 def _repr_info(self):
57 info = [self.__class__.__name__]

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls 1

get_debugMethod · 0.45

Tested by

no test coverage detected