[Python-ideas] (no subject)

Thomas Nyberg tomuxiong at gmx.com
Sat Dec 24 14:57:06 EST 2016


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


More information about the Python-ideas mailing list