Bug #1048
getpass.getpass python function doesn't hide input
Added by Tim Sarbin almost 10 years ago.
Updated over 8 years ago.
Description
The following code should print "Password: " on the command line, then get user text input without displaying it on the screen.
import getpass
passStr = getpass.getpass("Password: ")
It does hide input initially, but on pressing Enter, it then writes the entire password to the screen. (Expected output is nothing at all).
- Tags changed from needs-triage to python
- Assignee set to Ryo Murakawa
- Assignee changed from Ryo Murakawa to OI PKG
- Target version changed from oi_151 to oi_151_stable
- Due date set to 2011-09-16
- Category set to 10
- Status changed from New to Resolved
- Assignee changed from OI PKG to Ken Mays
- % Done changed from 0 to 100
- Estimated time set to 1.00 h
- Category changed from 10 to Desktop (JDS)
- Status changed from Resolved to Feedback
- Assignee changed from Ken Mays to OI JDS
- % Done changed from 100 to 80
Ken Mays wrote:
Tim - please use the runtime/python-32 package in our SFE repo for serious Python development.
That is utterly wrong.
However, I cannot reproduce this problem in oi_151a, using gnome-terminal with TERM=xterm or TERM=xterm-color and tmux with TERM=screen. This could have been resolved in a terminfo update. Please test this on oi_151a.
- Status changed from Feedback to Closed
Closing as unable to replicate (works as per the described expectation on oi_151a5) and no feedback forthcoming.
Also available in: Atom
PDF