Message94488
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: |
|
Date |
User |
Action |
Args |
2009-10-26 14:39:39 | pajs@fodder.org.uk | set | recipients:
+ pajs@fodder.org.uk |
2009-10-26 14:39:39 | pajs@fodder.org.uk | set | messageid: <1256567979.01.0.00205480055698.issue7208@psf.upfronthosting.co.za> |
2009-10-26 14:39:37 | pajs@fodder.org.uk | link | issue7208 messages |
2009-10-26 14:39:36 | pajs@fodder.org.uk | create | |
|