8000 bpo-40376: slightly improved the wording for os.getgrouplist (GH-1970… · python/cpython@2c03470 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2c03470

Browse files
bpo-40376: slightly improved the wording for os.getgrouplist (GH-19702) (GH-91557)
The documentation for os.getgrouplist potentially read like it returned all groups a user belongs to but it potentially doesn't. Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit bd26ef5) Co-authored-by: Jens Holzkämper <jens@holzkaemper.berlin>
1 parent b32d124 commit 2c03470

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/library/os.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,8 @@ process and user.
287287

288288
Return list of group ids that *user* belongs to. If *group* is not in the
289289
list, it is included; typically, *group* is specified as the group ID
290-
field from the password record for *user*.
290+
field from the password record for *user*, because that group ID will
291+
otherwise be potentially omitted.
291292

292293
.. availability:: Unix.
293294

0 commit comments

Comments
 (0)
0