Searched refs:dirfunc (Results 1 – 3 of 3) sorted by relevance
762 PyObject *dirfunc = PyDict_GetItemString(dict, "__dir__"); in module_dir() local763 if (dirfunc) { in module_dir()764 result = _PyObject_CallNoArg(dirfunc); in module_dir()
1493 PyObject *dirfunc = _PyObject_LookupSpecial(obj, &PyId___dir__); in _dir_object() local1496 if (dirfunc == NULL) { in _dir_object()1502 result = _PyObject_CallNoArg(dirfunc); in _dir_object()1503 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()