Debian Codegraph @

pypy/module/pwd/moduledef.py

raw symbols SCIP
1 from pypy.interpreter.mixedmodule import MixedModule
2
3 class Module(MixedModule):
4 """
5 This module provides access to the Unix password database.
6 It is available on all Unix versions.
7
8 Password database entries are reported as 7-tuples containing the following
9 items from the password database (see `<pwd.h>'), in order:
10 pw_name, pw_passwd, pw_uid, pw_gid, pw_gecos, pw_dir, pw_shell.
11 The uid and gid items are integers, all others are strings. An
12 exception is raised if the entry asked for cannot be found.
13 """
14
15 interpleveldefs = {
16 'getpwuid': 'interp_pwd.getpwuid',
17 'getpwnam': 'interp_pwd.getpwnam',
18 'getpwall': 'interp_pwd.getpwall',
19 }
20
21 appleveldefs = {
22 'struct_passwd': 'app_pwd.struct_passwd',
23 'struct_pwent': 'app_pwd.struct_passwd',
24 }
25