input without echo back / passwords

Fredrik Lundh effbot at telia.com
Tue Mar 7 06:44:28 CET 2000


Bruce Wolk <bawolk at pacbell.net> wrote:
> Running Python under IDLE,
>
> import getpass
> a = getpass.getpass()
>
> prompts for a password, but nevertheless does echo!  Any ideas why?

probably because IDLE's interpreter window is not
a real terminal device.

</F>





More information about the Python-list mailing list