diff options
author | Just van Rossum <just@letterror.com> | 2001-12-11 14:04:12 (GMT) |
---|---|---|
committer | Just van Rossum <just@letterror.com> | 2001-12-11 14:04:12 (GMT) |
commit | 14666cc04f2dd35bb42a37b5c4d11f4263d2cdb8 (patch) | |
tree | 61778aff2b059444efccb414b003d884fe7c1c9f /Mac/Modules | |
parent | d15db5c711f0b903762d0dfb0fbab95d869d56d8 (diff) | |
download | cpython-14666cc04f2dd35bb42a37b5c4d11f4263d2cdb8.zip cpython-14666cc04f2dd35bb42a37b5c4d11f4263d2cdb8.tar.gz cpython-14666cc04f2dd35bb42a37b5c4d11f4263d2cdb8.tar.bz2 |
Added __members__ to FInfo object.
Diffstat (limited to 'Mac/Modules')
-rw-r--r-- | Mac/Modules/macfsmodule.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |