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 steven.daprano
Recipients Sreenivasulu Saya, steven.daprano
Date 2015-09-29.04:11:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <20150929041123.GQ23642@ando.pearwood.info>
In-reply-to <1443499554.6.0.480253610351.issue25261@psf.upfronthosting.co.za>
Content
Not a bug. You have used a generator expression, so it is exhausted once 
you have run over it once using list(). Then, you run over it again with 
any() and all(), but they don't see any values so return the default 
value.

Change the generator expression to a list comprehension [ ... ] and you 
will get the results you want.
History
Date User Action Args
2015-09-29 04:11:28steven.dapranosetrecipients: + steven.daprano, Sreenivasulu Saya
2015-09-29 04:11:28steven.dapranolinkissue25261 messages
2015-09-29 04:11:28steven.dapranocreate