Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

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

Merged
hugovk merged 1 commit intopython:3.14from
miss-islington:backport-074f3b2-3.14
Sep 9, 2025
Merged

[3.14] gh-138577: Mention Unix-specific limitations ofgetpass.getpass(echo_char=...) (GH-138677)#138696
hugovk merged 1 commit intopython:3.14from
miss-islington:backport-074f3b2-3.14

Conversation

@miss-islington
Copy link
Contributor

@miss-islingtonmiss-islington commentedSep 9, 2025
edited by github-actionsbot
Loading

Inbf8bbe9,getpass.getpass gained
the ability to provide keyboard feedback throughecho_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 whengetpass.getpass usesecho_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 commit074f3b2)

Co-authored-by: yagggifakepoet0101@gmail.com


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

…s(echo_char=...)` (pythonGH-138677)Inbf8bbe9, `getpass.getpass` gainedthe ability to provide keyboard feedback through `echo_char`.On Unix, line editing shortcuts such as Ctrl+U were previously handledas the terminal operates in canonical mode (see termios(3)). However,since keyboard feedback requires to switch to noncanonical mode, thisnow results in an inconsistency when `getpass.getpass` uses `echo_char`as those shortcuts are no more supported. This limitation is specificto Unix and does not affect Windows users where line editing shortcutswere never supported.(cherry picked from commit074f3b2)Co-authored-by: yagggi <fakepoet0101@gmail.com>
@hugovkhugovk merged commit2162fcc intopython:3.14Sep 9, 2025
39 checks passed
@github-project-automationgithub-project-automationbot moved this fromTodo toDone inDocs PRsSep 9, 2025
@miss-islingtonmiss-islington deleted the backport-074f3b2-3.14 branchJanuary 2, 2026 17:09
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@picnixzpicnixzpicnixz approved these changes

Assignees

@hugovkhugovk

Labels

docsDocumentation in the Doc dirskip news

Projects

Status: Done

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@miss-islington@picnixz@hugovk@yagggi

[8]ページ先頭

©2009-2026 Movatter.jp