any() and all() shorthand

castironpi at gmail.com castironpi at gmail.com
Mon Jan 7 15:27:52 EST 2008


On Jan 7, 1:45 pm, castiro... at gmail.com wrote:
> On Jan 7, 1:29 pm, "Guilherme Polo" <ggp... at gmail.com> wrote:
>
> The idea is a shorthand for reduce.  Here, _next_ meant the next item
> in the iterable c.

'Only' is another known quantifier in logic: 'all and only'.  Any
(there exists) and all (for all) are too.  'Only' (and not others)
could be useful, from the theoretical standpoint.  But where?



More information about the Python-list mailing list