Searched refs:SelectorKey (Results 1 – 6 of 6) sorted by relevance
/external/python/cpython3/Lib/ |
D | selectors.py | 46 SelectorKey = namedtuple('SelectorKey', ['fileobj', 'fd', 'events', 'data']) variable 48 SelectorKey.__doc__ = """SelectorKey(fileobj, fd, events, data) 54 SelectorKey.fileobj.__doc__ = 'File object registered.' 55 SelectorKey.fd.__doc__ = 'Underlying file descriptor.' 56 SelectorKey.events.__doc__ = 'Events that must be waited for on this file object.' 57 SelectorKey.data.__doc__ = ('''Optional opaque data associated to this file object. 239 key = SelectorKey(fileobj, self._fileobj_lookup(fileobj), events, data)
|
/external/python/cpython3/Doc/library/ |
D | selectors.rst | 68 .. class:: SelectorKey 70 A :class:`SelectorKey` is a :class:`~collections.namedtuple` used to 114 This returns a new :class:`SelectorKey` instance, or raises a 125 This returns the associated :class:`SelectorKey` instance, or raises a 138 This returns a new :class:`SelectorKey` instance, or raises a 156 *key* is the :class:`SelectorKey` instance corresponding to a ready file 182 This returns the :class:`SelectorKey` instance associated to this file 190 registered file objects to their associated :class:`SelectorKey`
|
/external/python/cpython3/Lib/test/test_asyncio/ |
D | test_selector_events.py | 206 self.loop._selector.get_key.return_value = selectors.SelectorKey( 222 self.loop._selector.get_key.return_value = selectors.SelectorKey( 236 self.loop._selector.get_key.return_value = selectors.SelectorKey( 245 self.loop._selector.get_key.return_value = selectors.SelectorKey( 276 self.loop._selector.get_key.return_value = selectors.SelectorKey( 291 self.loop._selector.get_key.return_value = selectors.SelectorKey( 300 self.loop._selector.get_key.return_value = selectors.SelectorKey( 322 [(selectors.SelectorKey( 334 [(selectors.SelectorKey( 345 [(selectors.SelectorKey(1, 1, selectors.EVENT_WRITE, [all …]
|
D | utils.py | 299 key = selectors.SelectorKey(fileobj, 0, events, data)
|
/external/python/cpython3/Lib/test/ |
D | test_selectors.py | 66 self.assertIsInstance(key, selectors.SelectorKey) 270 self.assertTrue(isinstance(key, selectors.SelectorKey))
|
D | test_telnetlib.py | 129 key = selectors.SelectorKey(fileobj, 0, events, data)
|