mirror of
https://github.com/python/cpython.git
synced 2026-01-29 06:06:01 +00:00
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.
Miscellaneous source files for the main Python shared library