[issue19172] selectors: add keys() method
Antoine Pitrou
report at bugs.python.org
Sun Oct 6 17:02:03 CEST 2013
Antoine Pitrou added the comment:
> FWIW, I think the "ideal" solution would be for keys() (*) to return a
> read-only Mapping implementation, allowing for file object lookup (using
> __getitem__) as well as iteration on SelectorKeys (using __iter__) and
> fast emptiness checking (using __len__).
Actually, you would use values() to iterate on SelectorKeys.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19172>
_______________________________________
More information about the Python-bugs-list
mailing list