bool hasAttrObject(PyObject attribute) => checked(() => api.PyObject_HasAttr(ptr, attribute.ptr)) != 0;