Home
last modified time | relevance | path

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

/external/python/cpython3/Objects/
Dmoduleobject.c762 PyObject *dirfunc = PyDict_GetItemString(dict, "__dir__"); in module_dir() local
763 if (dirfunc) { in module_dir()
764 result = _PyObject_CallNoArg(dirfunc); in module_dir()
Dobject.c1493 PyObject *dirfunc = _PyObject_LookupSpecial(obj, &PyId___dir__); in _dir_object() local
1496 if (dirfunc == NULL) { in _dir_object()
1502 result = _PyObject_CallNoArg(dirfunc); in _dir_object()
1503 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()