[issue19172] selectors: add keys() method
STINNER Victor
report at bugs.python.org
Sat Oct 5 21:42:05 CEST 2013
STINNER Victor added the comment:
Using .keys() to test if the selector is empty is surprising. To test if a
str, list, tuple, dict, set, ..., is empty: if container: <not empty> is
enough.
Or sometimes I write if len(container): ...
Selector has no length?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19172>
_______________________________________
More information about the Python-bugs-list
mailing list