[Python-ideas] all, any - why no none ?

Ben Finney ben+python at benfinney.id.au
Wed Apr 11 00:34:46 CEST 2012

Steven Samuel Cole
<steven.samuel.cole at gmail.com> writes:

> i'm aware they've been around for quite a while, but for some reason,
> i did not have the builtins all(seq) and any(seq) on the radar thus
> far. when i used them today, i just assumed there was a corresponding
> none(seq), but was surprised to learn that is not true.

And then you realised ‘not any(seq)’ works fine, and continued on
satisfied. Right?

 \     “Not to be absolutely certain is, I think, one of the essential |
  `\                         things in rationality.” —Bertrand Russell |
_o__)                                                                  |
Ben Finney

More information about the Python-ideas mailing list