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

Function find_ready_matching

Lib/test/test_poll.py:24–29  ·  view source on GitHub ↗
(ready, flag)

Source from the content-addressed store, hash-verified

22requires_working_socket(module=True)
23
24def find_ready_matching(ready, flag):
25 match = []
26 for fd, mode in ready:
27 if mode & flag:
28 match.append(fd)
29 return match
30
31class PollTests(unittest.TestCase):
32

Callers 1

test_poll1Method · 0.70

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…