keyboard input without an echo?

Michael Hudson mwh21 at cam.ac.uk
Sun Mar 26 18:49:04 EST 2000


"Gang Seong Lee" <gslee111 at daisy.kwangwoon.ac.kr> writes:

> Hi everyone,
> 
> I'd like to get a keyboard input without an echo, like a password input.
> Is there any wat to do with Python?
> 

import getpass

will answer your immediate need; reading the source to getpass.py in
the standard library will tell you how it is done.

Cheers,
M.

-- 
well, take it from an old hand: the only reason it would be easier
to program in C is that you can't easily express complex  problems
in C, so you don't.                 -- Erik Naggum, comp.lang.lisp



More information about the Python-list mailing list