getpass and IDEs
Wolfgang Rohdewald
wolfgang at rohdewald.de
Fri Feb 25 14:27:42 EST 2011
On Freitag 25 Februar 2011, Andrew wrote:
> I find that calling getpass produces a warning noting that it
> can't suppress output, if I'm using idle, wingide, or a few
> others. If I'm running from the console it works fine, but
> then I can't make use of ide-integrated debugging.
>
> I know I could just set up a test account for development
> purposes if I'm concerned about shoulder surfers, and that's
> probably a good idea anyway. But I'm curious what's different
> about IDE environments that makes it impossible to suppress
> output on them, and if there's anything that might be done
> about this.
I'd say your IDE redirects stdout/stderr so it can show
output within the IDE
http://docs.python.org/library/getpass.html
reading python docs lets me believe you are using
python pre 2.6
if so, you could try to open a stream to /dev/tty and pass
that to getpass.getpass()
--
Wolfgang
More information about the Python-list
mailing list