mirror of
https://github.com/python/cpython.git
synced 2024-11-30 05:15:14 +08:00
Added __members__ to FInfo object.
This commit is contained in:
parent
d15db5c711
commit
14666cc04f
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user