[Python-ideas] sentinel_exception argument to `iter`

Chris Angelico rosuav at gmail.com
Fri Feb 7 05:47:48 CET 2014


On Fri, Feb 7, 2014 at 3:15 PM, Terry Reedy <tjreedy at udel.edu> wrote:
>> Forgive me if this is a stupid question, but wouldn't this suppress
>> any other thrown exception? I'm looking for a bare 'raise' inside the
>> except block,
>
>
> which should be there. As I said, but you snipped, '(untested)'

Ah okay. Makes sense :) Wasn't sure if it was intentional, or if there
was some other magic that would do what was wanted.

ChrisA


More information about the Python-ideas mailing list