From 14666cc04f2dd35bb42a37b5c4d11f4263d2cdb8 Mon Sep 17 00:00:00 2001 From: Just van Rossum Date: Tue, 11 Dec 2001 14:04:12 +0000 Subject: Added __members__ to FInfo object. --- Mac/Modules/macfsmodule.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Mac/Modules/macfsmodule.c b/Mac/Modules/macfsmodule.c index 9684def..6dba578 100644 --- a/Mac/Modules/macfsmodule.c +++ b/Mac/Modules/macfsmodule.c @@ -292,6 +292,8 @@ mfsi_getattr(mfsiobject *self, char *name) return PyMac_BuildPoint(self->finfo.fdLocation); else if ( strcmp(name, "Fldr") == 0 ) return Py_BuildValue("i", (int)self->finfo.fdFldr); + else if ( strcmp(name, "__members__") == 0 ) + return Py_BuildValue("[sssss]", "Type", "Creator", "Flags", "Location", "Fldr"); else return Py_FindMethod(mfsi_methods, (PyObject *)self, name); } -- cgit v0.12