Searched refs:reversed_meth (Results 1 – 1 of 1) sorted by relevance
226 PyObject *seq, *reversed_meth; in reversed_new() local237 reversed_meth = PyObject_GetAttrString(seq, "__reversed__"); in reversed_new()238 if (reversed_meth == NULL) { in reversed_new()246 reversed_meth = _PyObject_LookupSpecial(seq, "__reversed__", in reversed_new()248 if (reversed_meth == NULL && PyErr_Occurred()) in reversed_new()251 if (reversed_meth != NULL) { in reversed_new()252 PyObject *res = PyObject_CallFunctionObjArgs(reversed_meth, NULL); in reversed_new()253 Py_DECREF(reversed_meth); in reversed_new()