Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ 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
22
requires_working_socket(module=True)
23
24
def
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
31
class
PollTests(unittest.TestCase):
32
Callers
1
test_poll1
Method · 0.70
Calls
1
append
Method · 0.45
Tested by
no test coverage detected