[Python-ideas] (no subject)

Victor Stinner victor.stinner at gmail.com
Sun Dec 25 16:51:07 EST 2016


Le 24 déc. 2016 8:42 PM, "Neil Girdhar" <mistersheik at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20161225/7b7c84d6/attachment.html>


More information about the Python-ideas mailing list