INADA Naoki 378edee0a3
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.
2018-01-16 20:52:41 +09:00
..
2018-01-09 10:27:57 -05:00
2017-09-29 15:53:19 -07:00
2017-09-29 15:53:19 -07:00
2017-09-14 18:13:16 -07:00