[1]: isinstance(StopIteration, Exception)
[1]: False
[1]: False
no, really:
help(StopIteration)
class StopIteration(Exception)
| Signal the end from iterator.__next__().
|
| Method resolution order:
| StopIteration
| Exception
| BaseException
| object
...