Skip to content Skip to sidebar Skip to footer

Is There Easy Way To Prevent Echo From Input?

How to prevent echo from input ?? Have tried 'getpass()' but no luck. On Windows IDLE, it doesn't work Python 3.3.2 (v3.3.2:d047928ae3f6, May 16 2013, 00:03:43) [MSC v.1600 32

Solution 1:

I'm assuming your first example there is in IDLE.

From getpass.win_getpass():

if sys.stdin is not sys.__stdin__:
    return fallback_getpass(prompt, stream)

IDLE replaces sys.stdin with a different object. getpass detects that somebody has wrapped stdin and fails for security reasons.

See: http://bugs.python.org/issue9290

Post a Comment for "Is There Easy Way To Prevent Echo From Input?"