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

Method register

Lib/test/test_asyncio/utils.py:316–319  ·  view source on GitHub ↗
(self, fileobj, events, data=None)

Source from the content-addressed store, hash-verified

314 self.keys = {}
315
316 def register(self, fileobj, events, data=None):
317 key = selectors.SelectorKey(fileobj, 0, events, data)
318 self.keys[fileobj] = key
319 return key
320
321 def unregister(self, fileobj):
322 return self.keys.pop(fileobj)

Callers 15

headingMethod · 0.45
test_unregisterMethod · 0.45
setUpMethod · 0.45
test_codecs_lookupMethod · 0.45
test_addMethod · 0.45
test_fromfdMethod · 0.45
test_control_and_waitMethod · 0.45
testMethod · 0.45
testMethod · 0.45

Calls

no outgoing calls

Tested by 15

test_unregisterMethod · 0.36
setUpMethod · 0.36
test_codecs_lookupMethod · 0.36
test_addMethod · 0.36
test_fromfdMethod · 0.36
test_control_and_waitMethod · 0.36
testMethod · 0.36
testMethod · 0.36
test_stderr_NoneMethod · 0.36