input without echo back / passwords

Fredrik Lundh effbot at telia.com
Tue Mar 7 00:44:28 EST 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