[Python-ideas] sentinel_exception argument to `iter`
Terry Reedy
tjreedy at udel.edu
Fri Feb 7 22:54:04 CET 2014
On 2/7/2014 3:39 AM, Steven D'Aprano wrote:
> is simpler than the proposed behaviour:
>
> "the callable is called until it returns the sentinel, unless the
> sentinel is an exception instance or class, in which case the
> callable is called until it raises that exception, or one which is
> compatible with it"
To repeat, for the 3rd or 4th time, this is not the behavior that either
I or Ram proposed. I even provided code to be clear as to what I mean at
the time.
--
Terry Jan Reedy
More information about the Python-ideas
mailing list