> Why not allow that?
> 
>     def any(self, predicate=lambda x: True, default=None)
>         for a in self:
>             if predicate(a):
>                 break
>         else:
>             return default
>         return a

I'm +0 (given that I'm still skeptical about the need to have something
like this). Also setting aside the moratorium here, which may disallow
that kind of change for a foreseeable feature in any form.

Regards,
Martin
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to