| 790 | // PyObject_HasAttrStringWithError() to Python 3.13.0a1 |
| 791 | #if PY_VERSION_HEX < 0x030D00A1 |
| 792 | static inline int |
| 793 | PyObject_HasAttrWithError(PyObject *obj, PyObject *attr) |
| 794 | { |
| 795 | PyObject *res; |
| 796 | int rc = PyObject_GetOptionalAttr(obj, attr, &res); |
| 797 | Py_XDECREF(res); |
| 798 | return rc; |
| 799 | } |
| 800 | |
| 801 | static inline int |
| 802 | PyObject_HasAttrStringWithError(PyObject *obj, const char *attr) |
nothing calls this directly
no test coverage detected