Skip to content

Commit fffc644

Browse files
committed
Mention unexpected behavior of getpass.getpass() in document
1 parent 097c563 commit fffc644

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Doc/library/getpass.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ The :mod:`getpass` module provides two functions:
3939
If you call getpass from within IDLE, the input may be done in the
4040
terminal you launched IDLE from rather than the idle window itself.
4141

42+
.. note::
43+
On Unix systems, when ``echo_char`` is set, ``Ctrl+U`` will not erase
44+
the entire current input line, and may insert unexpected characters
45+
into the input.
46+
(See https://github.com/python/cpython/issues/138577 for detail)
47+
4248
.. versionchanged:: 3.14
4349
Added the *echo_char* parameter for keyboard feedback.
4450

0 commit comments

Comments
 (0)