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
5ac2a07f
Commit
5ac2a07f
authored
Dec 22, 1998
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Basic documentation for the getpass module.
parent
85220410
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
Doc/lib/libgetpass.tex
Doc/lib/libgetpass.tex
+31
-0
No files found.
Doc/lib/libgetpass.tex
0 → 100644
View file @
5ac2a07f
\section
{
\module
{
getpass
}
--- Portable password reading.
}
\declaremodule
{
standard
}{
getpass
}
\moduleauthor
{
Piers Lauder
}{
piers@cs.su.oz.au
}
% Windows support by Guido van Rossum.
\sectionauthor
{
Fred L. Drake, Jr.
}{
fdrake@acm.org
}
\modulesynopsis
{
Portable reading of passwords and retrieval of the userid.
}
The
\module
{
getpass
}
module provides two functions:
\begin{funcdesc}
{
getpass
}{
\optional
{
prompt
}}
Prompt the user for a password without echoing. The user is
prompted using the string
\var
{
prompt
}
, which defaults to
\code
{
'Password: '
}
.
\end{funcdesc}
\begin{funcdesc}
{
getuser
}{}
Return the ``login name'' of the user.
This function checks the environment variables
\envvar
{
LOGNAME
}
,
\envvar
{
USER
}
,
\envvar
{
LNAME
}
and
\envvar
{
USERNAME
}
, in order, and
returns the value of the first one which is set to a non-empty
string. If none are set, the login name from the password database
is returned on systems which support the
\module
{
pwd
}
module,
otherwise, an exception is raised.
\end{funcdesc}
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