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 <rep...@bugs.python.org>
<http://bugs.python.org/issue25834>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to