[New-bugs-announce] [issue7208] Getpass echo's password to screen on 2.6, but not on 2.5 or 3.1
Peter Saunders
report at bugs.python.org
Mon Oct 26 15:39:39 CET 2009
New submission from Peter Saunders <pajs at fodder.org.uk>:
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 ln8u3494inx:[/tmp]> /opt/IBpython/2.6.3/bin/python -c 'import
gp; gp.getpass()'
Password:
----------
components: Library (Lib)
messages: 94488
nosy: pajs at fodder.org.uk
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.python.org>
<http://bugs.python.org/issue7208>
_______________________________________
More information about the New-bugs-announce
mailing list