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

Method __init__

Lib/asyncio/selector_events.py:59–67  ·  view source on GitHub ↗
(self, selector=None)

Source from the content-addressed store, hash-verified

57 """
58
59 def __init__(self, selector=None):
60 super().__init__()
61
62 if selector is None:
63 selector = selectors.DefaultSelector()
64 logger.debug('Using selector: %s', selector.__class__.__name__)
65 self._selector = selector
66 self._make_self_pipe()
67 self._transports = weakref.WeakValueDictionary()
68
69 def _make_socket_transport(self, sock, protocol, waiter=None, *,
70 extra=None, server=None, context=None):

Callers

nothing calls this directly

Calls 4

_make_self_pipeMethod · 0.95
superClass · 0.85
__init__Method · 0.45
debugMethod · 0.45

Tested by

no test coverage detected