Home
last modified time | relevance | path

Searched refs:dirfunc (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython3/Objects/
Dmoduleobject.c801 PyObject *dirfunc = _PyDict_GetItemIdWithError(dict, &PyId___dir__); in module_dir() local
802 if (dirfunc) { in module_dir()
803 result = _PyObject_CallNoArg(dirfunc); in module_dir()
Dobject.c1475 PyObject *dirfunc = _PyObject_LookupSpecial(obj, &PyId___dir__); in _dir_object() local
1478 if (dirfunc == NULL) { in _dir_object()
1484 result = _PyObject_CallNoArg(dirfunc); in _dir_object()
1485 Py_DECREF(dirfunc); in _dir_object()
/external/python/cpython2/Objects/
Dobject.c1921 PyObject *dirfunc; in _dir_object() local
1925 dirfunc = PyObject_GetAttrString(obj, "__dir__"); in _dir_object()
1926 if (dirfunc == NULL) { in _dir_object()
1934 dirfunc = _PyObject_LookupSpecial(obj, "__dir__", &dir_str); in _dir_object()
1938 if (dirfunc == NULL) { in _dir_object()
1949 result = PyObject_CallFunctionObjArgs(dirfunc, NULL); in _dir_object()
1950 Py_DECREF(dirfunc); in _dir_object()