Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
fe3c80ba
Commit
fe3c80ba
authored
Oct 02, 2014
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Closes #19342: improve docstrings in grp module.
parent
14b5a4da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Modules/grpmodule.c
Modules/grpmodule.c
+6
-6
No files found.
Modules/grpmodule.c
View file @
fe3c80ba
...
@@ -157,11 +157,11 @@ grp_getgrall(PyObject *self, PyObject *ignore)
...
@@ -157,11 +157,11 @@ grp_getgrall(PyObject *self, PyObject *ignore)
static
PyMethodDef
grp_methods
[]
=
{
static
PyMethodDef
grp_methods
[]
=
{
{
"getgrgid"
,
grp_getgrgid
,
METH_O
,
{
"getgrgid"
,
grp_getgrgid
,
METH_O
,
"getgrgid(id) ->
tuple
\n
\
"getgrgid(id) ->
(gr_name,gr_passwd,gr_gid,gr_mem)
\n
\
Return the group database entry for the given numeric group ID. If
\n
\
Return the group database entry for the given numeric group ID. If
\n
\
id is not valid, raise KeyError."
},
id is not valid, raise KeyError."
},
{
"getgrnam"
,
grp_getgrnam
,
METH_O
,
{
"getgrnam"
,
grp_getgrnam
,
METH_O
,
"getgrnam(name) ->
tuple
\n
\
"getgrnam(name) ->
(gr_name,gr_passwd,gr_gid,gr_mem)
\n
\
Return the group database entry for the given group name. If
\n
\
Return the group database entry for the given group name. If
\n
\
name is not valid, raise KeyError."
},
name is not valid, raise KeyError."
},
{
"getgrall"
,
grp_getgrall
,
METH_NOARGS
,
{
"getgrall"
,
grp_getgrall
,
METH_NOARGS
,
...
@@ -178,10 +178,10 @@ PyDoc_STRVAR(grp__doc__,
...
@@ -178,10 +178,10 @@ PyDoc_STRVAR(grp__doc__,
Group entries are reported as 4-tuples containing the following fields
\n
\
Group entries are reported as 4-tuples containing the following fields
\n
\
from the group database, in order:
\n
\
from the group database, in order:
\n
\
\n
\
\n
\
name - name of the group
\n
\
gr_
name - name of the group
\n
\
passwd - group password (encrypted); often empty
\n
\
gr_
passwd - group password (encrypted); often empty
\n
\
gid - numeric ID of the group
\n
\
g
r_g
id - numeric ID of the group
\n
\
mem - list of members
\n
\
gr_
mem - list of members
\n
\
\n
\
\n
\
The gid is an integer, name and password are strings. (Note that most
\n
\
The gid is an integer, name and password are strings. (Note that most
\n
\
users are not explicitly listed as members of the groups they are in
\n
\
users are not explicitly listed as members of the groups they are in
\n
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment