[Python-ideas] Function to return first(or last) true value from list

Chris Angelico rosuav at gmail.com
Fri Feb 21 04:37:19 CET 2014


On Fri, Feb 21, 2014 at 11:59 AM, Ethan Furman <ethan at stoneleaf.us> wrote:
> I think the basic problem is that a few exceptions are intended for the
> Python interpreter itself, but that's easy to forget, particularly since
> that list is so small:
>
>   StopIteration
>   ...
>   um, any others?

There are other exceptions that have particular semantics associated
with them. SystemExit is not printed to stderr if it propagates all
the way up

ChrisA


More information about the Python-ideas mailing list