We can optimize the `hasattr` implementation to not need to suppress `AttributeError` by using `PyObject_HasAttrWithError` on Python 3.13+. I suggest we do this by implementing `pyo3_ffi::compat::PyObject_HasAttrWithError`.
We can optimize the
hasattrimplementation to not need to suppressAttributeErrorby usingPyObject_HasAttrWithErroron Python 3.13+.I suggest we do this by implementing
pyo3_ffi::compat::PyObject_HasAttrWithError.