[Python-bugs-list] getpass() echo password input (PR#359)
M.-A. Lemburg
mal@lemburg.com
Fri, 16 Jun 2000 10:03:55 +0200
harishbk@inf.com wrote:
>
> Full_Name: harish
> Version: 1.5.2
> OS: OSF1 version 4.0f
> Submission from: (NULL) (202.54.39.82)
>
> code:
>
> #! /usr/local/bin/python
>
> import getpass
> pas=getpass.getpass()
>
> when it is run
> password : harish
>
> it is echoing password input. How can we avoid echoing it.
You will need to compile Python with termios support enabled
to have getpass() turn off echoing. (Edit Modules/Setup and
rerun 'make install'.)
--
Marc-Andre Lemburg
______________________________________________________________________
Business: http://www.lemburg.com/
Python Pages: http://www.lemburg.com/python/