[issue44762] getpass.getpass on Windows fallback detection is bad

Steve Dower report at bugs.python.org
Wed Jul 28 17:51:41 EDT 2021


Steve Dower <steve.dower at python.org> added the comment:

We could also provide a better check in WindowsConsoleIO.isatty, since that should have already handled most of the previous checks (I wouldn't want to do a typecheck in getpass, though). But yeah, this seems like "sys.stdin and sys.stdin.isatty()" is the right condition.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44762>
_______________________________________


More information about the Python-bugs-list mailing list