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

Function readwrite

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

Source from the content-addressed store, hash-verified

109 obj.handle_error()
110
111def readwrite(obj, flags):
112 try:
113 if flags & select.POLLIN:
114 obj.handle_read_event()
115 if flags & select.POLLOUT:
116 obj.handle_write_event()
117 if flags & select.POLLPRI:
118 obj.handle_expt_event()
119 if flags & (select.POLLHUP | select.POLLERR | select.POLLNVAL):
120 obj.handle_close()
121 except OSError as e:
122 if e.errno not in _DISCONNECTED:
123 obj.handle_error()
124 else:
125 obj.handle_close()
126 except _reraised_exceptions:
127 raise
128 except:
129 obj.handle_error()
130
131def poll(timeout=0.0, map=None):
132 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…