Home
last modified time | relevance | path

Searched refs:SelectorKey (Results 1 – 6 of 6) sorted by relevance

/external/python/cpython3/Lib/
Dselectors.py46 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.
238 key = SelectorKey(fileobj, self._fileobj_lookup(fileobj), events, data)
/external/python/cpython3/Doc/library/
Dselectors.rst68 .. 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/
Dtest_selector_events.py608 self.loop._selector.get_key.return_value = selectors.SelectorKey(
624 self.loop._selector.get_key.return_value = selectors.SelectorKey(
638 self.loop._selector.get_key.return_value = selectors.SelectorKey(
647 self.loop._selector.get_key.return_value = selectors.SelectorKey(
678 self.loop._selector.get_key.return_value = selectors.SelectorKey(
693 self.loop._selector.get_key.return_value = selectors.SelectorKey(
702 self.loop._selector.get_key.return_value = selectors.SelectorKey(
724 [(selectors.SelectorKey(
736 [(selectors.SelectorKey(
747 [(selectors.SelectorKey(1, 1, selectors.EVENT_WRITE,
[all …]
Dutils.py288 key = selectors.SelectorKey(fileobj, 0, events, data)
/external/python/cpython3/Lib/test/
Dtest_selectors.py65 self.assertIsInstance(key, selectors.SelectorKey)
269 self.assertTrue(isinstance(key, selectors.SelectorKey))
Dtest_telnetlib.py128 key = selectors.SelectorKey(fileobj, 0, events, data)