input without echo back / passwords

doyen at doyen at
Tue Mar 7 02:14:12 CET 2000

Just for all you helpful people who are going to say


I've tried...      import getpass   # (works fine)

but when I execute

ps = getpass("my prompt")

I get
   pswd = getpass("OK enter the password")
TypeError: call of non-function (type module)

In desperation, without really thinking it would work, I've also tried.

 ps = getpass()
ps = win_getpass()

doyen at

More information about the Python-list mailing list