How come StopIteration.__base__ is not BaseException?

Ethan Furman ethan at stoneleaf.us
Tue Aug 27 16:00:50 EDT 2013


On 08/26/2013 12:37 PM, Marco Buttu wrote:
>
> Since StopIteration is not an error, how come does it inherit directly from Exception and not from BaseException?

Not all exceptions are errors. (Although not dealing with one can be. ;)

--
~Ethan~



More information about the Python-list mailing list