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

jan matejek report at bugs.python.org
Wed Jul 28 09:12:11 EDT 2021


jan matejek <ja+python at matejcik.cz> added the comment:

...this is a problem because:

When the check incorrectly infers that it can use `msvcrt` while its stdin is a pipe, the calls to `putwch` and `getwch` are going into the void and the program effectively freezes waiting for input that never comes.

See also:
https://stackoverflow.com/questions/49858821/python-getpass-doesnt-work-on-windows-git-bash-mingw64/54046572
https://github.com/ipython/ipython/issues/854

----------

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


More information about the Python-bugs-list mailing list