getpass.getpass() bugged?

Matthias Grutzeck mgr at propack-data.com
Fri Sep 3 03:48:38 EDT 1999


super_banane at yahoo.com wrote:
> >>> import getpass
> >>> getpass.getpass()
> Password: hello
> 'hello'
> >>>

Without assigning the returnvalue to a variable the interpreter will
show you the result of the call. If you have a look at the my example,
you will see the behaviour...

Python 1.5.2 (#0, Apr 13 1999, 10:51:12) [MSC 32 bit (Intel)] on win32
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import getpass
>>> getpass.getpass()
Password:
'hello'
>>> s=getpass.getpass()
Password:
>>> print s
hello
>>>

Hope that helps

Matthias

-- 
Matthias Grutzeck              Fon.   +49 (721) 9650 6
Propack Data GmbH              Fax.   +49 (721) 9650 888
Vincenz-Prießnitz-Str. 1       eMail: mgr at propack-data.com
D-76131 Karlsruhe / Germany    info:  http://www.propack-data.com/




More information about the Python-list mailing list