Author vstinner
Recipients neologix, pitrou, vstinner
Date 2013-10-05.19:42:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAMpsgwb6VhsQG6rvxuux+KV82C=8mmj_Qgpjrvf3pg2gTk+DGA@mail.gmail.com>
In-reply-to <1380995441.65.0.90019886399.issue19172@psf.upfronthosting.co.za>
Content
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?
History
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