@@ -152,11 +152,11 @@ grp_getgrall(PyObject *self, PyObject *ignore)
152152
153153static PyMethodDef grp_methods [] = {
154154 {"getgrgid" , grp_getgrgid , METH_O ,
155- "getgrgid(id) -> tuple \n\
155+ "getgrgid(id) -> (gr_name,gr_passwd,gr_gid,gr_mem) \n\
156156Return the group database entry for the given numeric group ID. If\n\
157157id is not valid, raise KeyError." },
158158 {"getgrnam" , grp_getgrnam , METH_VARARGS ,
159- "getgrnam(name) -> tuple \n\
159+ "getgrnam(name) -> (gr_name,gr_passwd,gr_gid,gr_mem) \n\
160160Return the group database entry for the given group name. If\n\
161161name is not valid, raise KeyError." },
162162 {"getgrall" , grp_getgrall , METH_NOARGS ,
@@ -173,10 +173,10 @@ PyDoc_STRVAR(grp__doc__,
173173Group entries are reported as 4-tuples containing the following fields\n\
174174from the group database, in order:\n\
175175\n\
176- name - name of the group\n\
177- passwd - group password (encrypted); often empty\n\
178- gid - numeric ID of the group\n\
179- mem - list of members\n\
176+ gr_name - name of the group\n\
177+ gr_passwd - group password (encrypted); often empty\n\
178+ gr_gid - numeric ID of the group\n\
179+ gr_mem - list of members\n\
180180\n\
181181The gid is an integer, name and password are strings. (Note that most\n\
182182users are not explicitly listed as members of the groups they are in\n\
0 commit comments