This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mgedmin
Recipients docs@python, mgedmin
Date 2013-10-22.08:58:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
This patch gives grp.getgrnam and grp.getgrgid sligtly more useful docstrings, and brings them in line with pwd.getpwnam/pwd.getpwuid.

Compare pydoc pwd.getpwnam:

    pwd.getpwnam = getpwnam(...)
        getpwnam(name) -> (pw_name,pw_passwd,pw_uid,
        Return the password database entry for the given user name.
        See help(pwd) for more on password database entries.

After looking at it I know that I can convert a name to an UID by doing pwd.getpwnam(name).pw_uid.

Meanwhile pydoc grp.getgrnam:

    grp.getgrnam = getgrnam(...)
        getgrnam(name) -> tuple
        Return the group database entry for the given group name.  If
        name is not valid, raise KeyError.

is rather unfriendly and makes me reach for Google just so that I could find out the names of the namedtuple members.
Date User Action Args
2013-10-22 08:58:23mgedminsetrecipients: + mgedmin, docs@python
2013-10-22 08:58:23mgedminsetmessageid: <>
2013-10-22 08:58:23mgedminlinkissue19342 messages
2013-10-22 08:58:23mgedmincreate