MCPcopy Index your code
hub / github.com/RustPython/RustPython / readwrite

Function readwrite

Lib/test/support/asyncore.py:121–139  ·  view source on GitHub ↗
(obj, flags)

Source from the content-addressed store, hash-verified

119 obj.handle_error()
120
121def readwrite(obj, flags):
122 try:
123 if flags & select.POLLIN:
124 obj.handle_read_event()
125 if flags & select.POLLOUT:
126 obj.handle_write_event()
127 if flags & select.POLLPRI:
128 obj.handle_expt_event()
129 if flags & (select.POLLHUP | select.POLLERR | select.POLLNVAL):
130 obj.handle_close()
131 except OSError as e:
132 if e.errno not in _DISCONNECTED:
133 obj.handle_error()
134 else:
135 obj.handle_close()
136 except _reraised_exceptions:
137 raise
138 except:
139 obj.handle_error()
140
141def poll(timeout=0.0, map=None):
142 if map is None:

Callers 1

poll2Function · 0.85

Calls 5

handle_expt_eventMethod · 0.80
handle_read_eventMethod · 0.45
handle_write_eventMethod · 0.45
handle_closeMethod · 0.45
handle_errorMethod · 0.45

Tested by

no test coverage detected