[Python-ideas] sentinel_exception argument to `iter`

Serhiy Storchaka storchaka at gmail.com
Fri Feb 7 15:28:38 CET 2014


07.02.14 10:36, Terry Reedy написав(ла):
> I wrote the above with the idea that there would be a third parameter to
> provide an exception. It would have to have a private default like
>
> class _NoException(Exception): pass

Natural default is StopIteration or ().




More information about the Python-ideas mailing list