David Lord <david...@gmail.com> added the comment:
I can reproduce this on Python 3.10. Actually, `input` and `getpass` both seem to have this behavior now. Please reopen it. ```python import getpass try: getpass.getpass("in: ") except: pass print("done") ``` ``` $ python example.py getpass: ^D done $ ``` Run this and press `Ctrl+D` or `Ctrl+C`. The shell prompt appears on the same line rather than the next line. ---------- nosy: +davidism _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue24711> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com