Searched refs:reversed_meth (Results 1 – 2 of 2) sorted by relevance
232 PyObject *seq, *reversed_meth; in reversed_new() local243 reversed_meth = PyObject_GetAttrString(seq, "__reversed__"); in reversed_new()244 if (reversed_meth == NULL) { in reversed_new()252 reversed_meth = _PyObject_LookupSpecial(seq, "__reversed__", in reversed_new()254 if (reversed_meth == NULL && PyErr_Occurred()) in reversed_new()257 if (reversed_meth != NULL) { in reversed_new()258 PyObject *res = PyObject_CallFunctionObjArgs(reversed_meth, NULL); in reversed_new()259 Py_DECREF(reversed_meth); in reversed_new()
276 PyObject *reversed_meth; in reversed_new_impl() local280 reversed_meth = _PyObject_LookupSpecial(seq, &PyId___reversed__); in reversed_new_impl()281 if (reversed_meth == Py_None) { in reversed_new_impl()282 Py_DECREF(reversed_meth); in reversed_new_impl()288 if (reversed_meth != NULL) { in reversed_new_impl()289 PyObject *res = _PyObject_CallNoArg(reversed_meth); in reversed_new_impl()290 Py_DECREF(reversed_meth); in reversed_new_impl()