Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[3.14] gh-138577: Mention Unix-specific limitations of getpass.getpass(echo_char=...) (GH-138677)#138696

Merged
hugovk merged 1 commit into
python:3.14python/cpython:3.14from
miss-islington:backport-074f3b2-3.14miss-islington/cpython:backport-074f3b2-3.14Copy head branch name to clipboard
Sep 9, 2025
Merged

[3.14] gh-138577: Mention Unix-specific limitations of getpass.getpass(echo_char=...) (GH-138677)#138696
hugovk merged 1 commit into
python:3.14python/cpython:3.14from
miss-islington:backport-074f3b2-3.14miss-islington/cpython:backport-074f3b2-3.14Copy head branch name to clipboard

Conversation

@miss-islington

@miss-islington miss-islington commented Sep 9, 2025

Copy link
Copy Markdown
Contributor

In bf8bbe9, getpass.getpass gained
the ability to provide keyboard feedback through echo_char.

On Unix, line editing shortcuts such as Ctrl+U were previously handled
as the terminal operates in canonical mode (see termios(3)). However,
since keyboard feedback requires to switch to noncanonical mode, this
now results in an inconsistency when getpass.getpass uses echo_char
as those shortcuts are no more supported. This limitation is specific
to Unix and does not affect Windows users where line editing shortcuts
were never supported.
(cherry picked from commit 074f3b2)

Co-authored-by: yagggi fakepoet0101@gmail.com


📚 Documentation preview 📚: https://cpython-previews--138696.org.readthedocs.build/

…s(echo_char=...)` (pythonGH-138677)

In bf8bbe9, `getpass.getpass` gained
the ability to provide keyboard feedback through `echo_char`.

On Unix, line editing shortcuts such as Ctrl+U were previously handled
as the terminal operates in canonical mode (see termios(3)). However,
since keyboard feedback requires to switch to noncanonical mode, this
now results in an inconsistency when `getpass.getpass` uses `echo_char`
as those shortcuts are no more supported. This limitation is specific
to Unix and does not affect Windows users where line editing shortcuts
were never supported.
(cherry picked from commit 074f3b2)

Co-authored-by: yagggi <fakepoet0101@gmail.com>
@hugovk hugovk merged commit 2162fcc into python:3.14 Sep 9, 2025
39 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Sep 9, 2025
@miss-islington miss-islington deleted the backport-074f3b2-3.14 branch January 2, 2026 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.