
report at bugs
Oct 26, 2009, 7:39 AM
Post #1 of 10
(442 views)
Permalink
|
|
[issue7208] Getpass echo's password to screen on 2.6, but not on 2.5 or 3.1
|
|
New submission from Peter Saunders <pajs [at] fodder>: Only sucessfully replicated on solaris. When running getpass() - it goes into non echo mode, however, once enter is pressed, the password is echoed to the screen. E.g. > /opt/python/2.6.3/bin/python -c 'import getpass; x=getpass.getpass()' Password: bob This does NOT happen on older versions: > /opt/IBpython/2.5.1/bin/python -c 'import getpass; x=getpass.getpass()' Password: /opt/python/2.3.3/bin/python -c 'import getpass; x=getpass.getpass()' Password: To stop this occuring for me, simply adding a stream.flush() line straight after the finally: termios.tcsetattr(fd, termios.TCSADRAIN, old) line fixes the issue: saundep [at] ln8u3494in:[/tmp]> /opt/IBpython/2.6.3/bin/python -c 'import gp; gp.getpass()' Password: ---------- components: Library (Lib) messages: 94488 nosy: pajs [at] fodder severity: normal status: open title: Getpass echo's password to screen on 2.6, but not on 2.5 or 3.1 versions: Python 2.6 _______________________________________ Python tracker <report [at] bugs> <http://bugs.python.org/issue7208> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
|