24 Dec
2016
24 Dec
'16
7:57 p.m.
On 12/24/2016 11:42 AM, Neil Girdhar wrote:
Usually, when an exception is hit that will (probably) crash the program, no one cares about less than a microsecond of performance.
I would probably agree with you in the SyntaxError example, but not for the others. Programming with exceptions is totally standard in Python and they are often used in tight loops. See here: https://docs.python.org/3/glossary.html#term-eafp https://docs.python.org/3/glossary.html#term-lbyl So keeping exceptions fast is definitely important. Cheers, Thomas