This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pajs@fodder.org.uk
Recipients pajs@fodder.org.uk
Date 2009-10-26.14:39:36
SpamBayes Score 0.00012108368
Marked as misclassified No
Message-id <1256567979.01.0.00205480055698.issue7208@psf.upfronthosting.co.za>
In-reply-to
Content
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@ln8u3494inx:[/tmp]> /opt/IBpython/2.6.3/bin/python -c 'import
gp; gp.getpass()'
Password:
History
Date User Action Args
2009-10-26 14:39:39pajs@fodder.org.uksetrecipients: + pajs@fodder.org.uk
2009-10-26 14:39:39pajs@fodder.org.uksetmessageid: <1256567979.01.0.00205480055698.issue7208@psf.upfronthosting.co.za>
2009-10-26 14:39:37pajs@fodder.org.uklinkissue7208 messages
2009-10-26 14:39:36pajs@fodder.org.ukcreate