Searched refs:dirfunc (Results 1 – 2 of 2) sorted by relevance
1916 PyObject *dirfunc; in _dir_object() local1920 dirfunc = PyObject_GetAttrString(obj, "__dir__"); in _dir_object()1921 if (dirfunc == NULL) { in _dir_object()1929 dirfunc = _PyObject_LookupSpecial(obj, "__dir__", &dir_str); in _dir_object()1933 if (dirfunc == NULL) { in _dir_object()1944 result = PyObject_CallFunctionObjArgs(dirfunc, NULL); in _dir_object()1945 Py_DECREF(dirfunc); in _dir_object()
1308 PyObject *dirfunc = _PyObject_LookupSpecial(obj, &PyId___dir__); in _dir_object() local1311 if (dirfunc == NULL) { in _dir_object()1317 result = PyObject_CallFunctionObjArgs(dirfunc, NULL); in _dir_object()1318 Py_DECREF(dirfunc); in _dir_object()