<p dir="ltr">Le 24 déc. 2016 8:42 PM, "Neil Girdhar" <<a href="mailto:mistersheik@gmail.com">mistersheik@gmail.com</a>> a écrit :<br>
> Usually, when an exception is hit that will (probably) crash the program, no one cares about less than a microsecond of performance.</p>
<p dir="ltr">Just one example. By design, hasattr(obj, name) raises an exception to return False.</p>
<p dir="ltr">So it has the cost of building the exception + raise exc + catch it.</p>
<p dir="ltr">Victor</p>