Title: [3.14] gh-138577: Mention Unix-specific limitations of `getpass.getpass(echo_char=...)` (GH-138677) by miss-islington · Pull Request #138696 · python/cpython · GitHub
Open Graph Title: [3.14] gh-138577: Mention Unix-specific limitations of `getpass.getpass(echo_char=...)` (GH-138677) by miss-islington · Pull Request #138696 · python/cpython
X Title: [3.14] gh-138577: Mention Unix-specific limitations of `getpass.getpass(echo_char=...)` (GH-138677) by miss-islington · Pull Request #138696 · python/cpython
Description: 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 Issue: gh-138577 📚 Documentation preview 📚: https://cpython-previews--138696.org.readthedocs.build/
Open Graph Description: 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 can...
X Description: 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 can...
Opengraph URL: https://github.com/python/cpython/pull/138696
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:811aa5c3-cf1b-5703-2826-b723dedf3a48 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E114:195CE2:3F070B:553BEA:6A51325F |
| html-safe-nonce | 1243ac4175a54a96e40a9b638dcb8984140122b73becde6fd5c80d17671e0e64 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTE0OjE5NUNFMjozRjA3MEI6NTUzQkVBOjZBNTEzMjVGIiwidmlzaXRvcl9pZCI6IjYwOTM1NjI0ODg4MTI1NDg3MDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ec106f47e8633cb5d7a78256091e9523cf93e6e6e7edc8e4b7ae136a56225b51 |
| hovercard-subject-tag | pull_request:2811256167 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/138696/files |
| twitter:image | https://avatars.githubusercontent.com/u/31488909?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/31488909?s=400&v=4 |
| og:image:alt | 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 can... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | e840f405b2718e8f2d55aafa9ff27dbce17e29d0c253011d05ea0fea3c78baff |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4ae6027e8ba70c79dc08249bb6cdc1a09d788496 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width