Searched refs:dirfunc (Results 1 – 3 of 3) sorted by relevance
801 PyObject *dirfunc = _PyDict_GetItemIdWithError(dict, &PyId___dir__); in module_dir() local802 if (dirfunc) { in module_dir()803 result = _PyObject_CallNoArg(dirfunc); in module_dir()
1475 PyObject *dirfunc = _PyObject_LookupSpecial(obj, &PyId___dir__); in _dir_object() local1478 if (dirfunc == NULL) { in _dir_object()1484 result = _PyObject_CallNoArg(dirfunc); in _dir_object()1485 Py_DECREF(dirfunc); in _dir_object()
1921 PyObject *dirfunc; in _dir_object() local1925 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()