summaryrefslogtreecommitdiffstats
path: root/Doc/library/os.rst
diff options
context:
space:
mode:
authorRoss Lagerwall <rosslagerwall@gmail.com>2011-06-10 05:30:30 (GMT)
committerRoss Lagerwall <rosslagerwall@gmail.com>2011-06-10 05:30:30 (GMT)
commitb0ae53d8a09731a51be48f9e84a71d09d0f90657 (patch)
treec4aed090ed5d29da17d008e3aa8d47b076146f1b /Doc/library/os.rst
parent10c30d676432b995d19308855a5ed40f87353074 (diff)
downloadcpython-b0ae53d8a09731a51be48f9e84a71d09d0f90657.zip
cpython-b0ae53d8a09731a51be48f9e84a71d09d0f90657.tar.gz
cpython-b0ae53d8a09731a51be48f9e84a71d09d0f90657.tar.bz2
Issue #9344: Add os.getgrouplist().
Diffstat (limited to 'Doc/library/os.rst')
-rw-r--r--Doc/library/os.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 06f6b7f..0a097d4 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -219,6 +219,17 @@ process and user.
Availability: Unix.
+.. function:: getgrouplist(user, group)
+
+ Return list of group ids that *user* belongs to. If *group* is not in the
+ list, it is included; typically, *group* is specified as the group ID
+ field from the password record for *user*.
+
+ Availability: Unix.
+
+ .. versionadded:: 3.3
+
+
.. function:: getgroups()
Return list of supplemental group ids associated with the current process.