Le 24 déc. 2016 8:42 PM, "Neil Girdhar" <mistersh...@gmail.com> a écrit :
> Usually, when an exception is hit that will (probably) crash the program,
no one cares about less than a microsecond of performance.

Just one example. By design, hasattr(obj, name) raises an exception to
return False.

So it has the cost of building the exception + raise exc + catch it.

Victor
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to