[issue25834] getpass falls back when sys.stdin is changed

Adam Bartoš report at bugs.python.org
Thu Dec 10 14:01:21 EST 2015


New submission from Adam Bartoš:

There is a check in Lib/getpass.py:win_getpass that causes a fallback version to be used when `sys.stdin` is changed. I change `sys.stdin` in my `win_unicode_console` package, and in this situation there is no reason to use the fallback version (see https://github.com/Drekin/win-unicode-console/issues/24).

It seems the check was added because of some issue with IDLE (https://hg.python.org/cpython/rev/6d5ac3c43416). Could this check be changed so it satisfies all the needs?

----------
components: Library (Lib), Windows
messages: 256180
nosy: Drekin, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: getpass falls back when sys.stdin is changed
type: behavior
versions: Python 3.5, Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25834>
_______________________________________


More information about the Python-bugs-list mailing list