getpass.getpass() bugged?

Michael P. Reilly arcege at shore.net
Fri Sep 3 20:41:15 EDT 1999


super_banane at yahoo.com wrote:
: The getpass.getpass() function should
: be requesting a password without echoing it...
: but unfortunately it does:

:>>> import getpass
:>>> getpass.getpass()
: Password: hello
: 'hello'
:>>>

: Python I use is v1.5.2
: Same behaviour on Solaris 2.6 and HPUX-10.20.
: Works fine with Python v1.5.1 on Linux, though.

I don't see a problem on my like system.

Python 1.5.2 (#6, Apr 20 1999, 10:35:35)  [GCC 2.7.2.2] on sunos5
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import os, getpass
>>> getpass.getpass()
Password:
'hello'
>>> os.uname()
('SunOS', 'golem', '5.6', 'Generic_105182-05', 'i86pc')
>>>

This sounds more like a problem with the terminal emulation (for example
emacs' bad shell modes).

  -Arcege





More information about the Python-list mailing list