https://github.com/python/cpython/commit/2162fcc51ae925c1497fbff729e6683ec3c48bd2 commit: 2162fcc51ae925c1497fbff729e6683ec3c48bd2 branch: 3.14 author: Miss Islington (bot) <[email protected]> committer: hugovk <[email protected]> date: 2025-09-09T13:00:36+03:00 summary:
[3.14] gh-138577: Mention Unix-specific limitations of `getpass.getpass(echo_char=...)` (GH-138677) (#138696) Co-authored-by: yagggi <[email protected]> files: M Doc/library/getpass.rst diff --git a/Doc/library/getpass.rst b/Doc/library/getpass.rst index 0fb0fc88683c03..af9c9e9f39d9a6 100644 --- a/Doc/library/getpass.rst +++ b/Doc/library/getpass.rst @@ -39,6 +39,14 @@ The :mod:`getpass` module provides two functions: If you call getpass from within IDLE, the input may be done in the terminal you launched IDLE from rather than the idle window itself. + .. note:: + On Unix systems, when *echo_char* is set, the terminal will be + configured to operate in + :manpage:`noncanonical mode <termios(3)#Canonical_and_noncanonical_mode>`. + In particular, this means that line editing shortcuts such as + :kbd:`Ctrl+U` will not work and may insert unexpected characters into + the input. + .. versionchanged:: 3.14 Added the *echo_char* parameter for keyboard feedback. _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
