Home
last modified time | relevance | path

Searched refs:reversed_meth (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Objects/
Denumobject.c232 PyObject *seq, *reversed_meth; in reversed_new() local
243 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()
/external/python/cpython3/Objects/
Denumobject.c276 PyObject *reversed_meth; in reversed_new_impl() local
280 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()