hiding command line input

destr0 replyonnewsgroup at doit.com
Sat Jul 13 00:15:33 EDT 2002


Hello,

I'm in the habit of using raw_input() for user interaction on
the command line.  I now have a situation where I need to
prompt the user for input on the command line, but I need
to get a password from them, so I'd like to hide the display
of the letters on the screen.  Is there another python function
that will get input in the manner raw_input() does, but mask the
input from the user, or am I going to have to roll my own
function.

Thanks!!




More information about the Python-list mailing list