keyboard input without an echo?

Michael Hudson mwh21 at
Mon Mar 27 01:49:04 CEST 2000

"Gang Seong Lee" <gslee111 at> 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 in
the standard library will tell you how it is done.


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