This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients neologix, pitrou, vstinner
Date 2013-10-05.19:42:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In-reply-to <>
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

Or sometimes I write if len(container): ...

Selector has no length?
Date User Action Args
2013-10-05 19:42:05vstinnersetrecipients: + vstinner, pitrou, neologix
2013-10-05 19:42:05vstinnerlinkissue19172 messages
2013-10-05 19:42:05vstinnercreate