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

Skip to content

Commit bd26ef5

Browse files
bpo-40376: slightly improved the wording for os.getgrouplist (GH-19702)
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>
1 parent 2bf5f64 commit bd26ef5

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
@@ -355,7 +355,8 @@ process and user.
355355

356356
Return list of group ids that *user* belongs to. If *group* is not in the
357357
list, it is included; typically, *group* is specified as the group ID
358-
field from the password record for *user*.
358+
field from the password record for *user*, because that group ID will
359+
otherwise be potentially omitted.
359360

360361
.. availability:: Unix.
361362

0 commit comments

Comments
 (0)
0