3 ms·
Python is far more promiscuous with Exceptions than languages like C#; they're not just used for "truly exceptional" conditions (see things like StopIteration o
by xen0 7y ago
Python is far more promiscuous with Exceptions than languages like C#; they're not just used for "truly exceptional" conditions (see things like StopIteration or GeneratorExit).
Different languages have different attitudes to this and that's reflected in their APIs. This will naturally affect your choice of language when designing a system, depending on your tolerance for failures, your demands for robustness, or your definition of "exceptional".