bpo-32544: Speed up hasattr() and getattr() (GH-5173)
AttributeError was raised always when attribute is not found. This commit skip raising AttributeError when `tp_getattro` is `PyObject_GenericGetAttr`. It makes hasattr() and getattr() about 4x faster when attribute is not found.
I
INADA Naoki committed
378edee0a3b913d60653dc17dfe61d83405a8135
Parent: b44c516
Committed by GitHub <noreply@github.com>
on 1/16/2018, 11:52:41 AM