On 11/04/20 1:15 am, Chris Angelico wrote:
StopIteration wants to say hello :)
By "rare' I mean as a proportion of APIs in existence. StopIteration is frequently used, but it's just one API.
The only other one I can think of in the stdlib is EOFError, and that isn't even used all that much.