Title: bpo-37827: IDLE shell handling of \r and \b control chars by taleinat · Pull Request #15211 · python/cpython · GitHub
Open Graph Title: bpo-37827: IDLE shell handling of \r and \b control chars by taleinat · Pull Request #15211 · python/cpython
X Title: bpo-37827: IDLE shell handling of \r and \b control chars by taleinat · Pull Request #15211 · python/cpython
Description: This is a first working version, looking for some user testing and feedback! This allows most progress bars to just work in IDLE, rather than flooding the shell window and sometimes slowing it down to a crawl. More generally, this makes IDLE's shell behave more similarly to a plain Python shell in a terminal. Note that some progress bar libraries, e.g. tqdm, now "just work"! In some cases some integration might be required; for example, TensorFlow does several checks on the sys.stdout file-like object to decide whether to use these control characters. Hacking TensorFlow to override that check makes it work as intended in the IDLE shell with this change. Note that this also currently includes a subtle change which attempts to avoid clobbering the user input when output is written after a command has finished executing, e.g. by a separate thread. But that's not the main addition here. https://bugs.python.org/issue37827
Open Graph Description: This is a first working version, looking for some user testing and feedback! This allows most progress bars to just work in IDLE, rather than flooding the shell window and sometimes slowing it down...
X Description: This is a first working version, looking for some user testing and feedback! This allows most progress bars to just work in IDLE, rather than flooding the shell window and sometimes slowing it down...
Opengraph URL: https://github.com/python/cpython/pull/15211
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:1df671e2-1708-12bf-3039-2345c3669246 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | B156:D209A:7FC7BC:A4849F:696B1801 |
| html-safe-nonce | 71f1e48c27265846927d3c3906de0c181326ce10fafe10422d328a3484b32f34 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTU2OkQyMDlBOjdGQzdCQzpBNDg0OUY6Njk2QjE4MDEiLCJ2aXNpdG9yX2lkIjoiMjU5NTUwOTU5ODQyODAxMDQ5OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a19a7157b646293d8abdc65ef10f0f130f229aeb62d2095983039852a4dfb1aa |
| hovercard-subject-tag | pull_request:306288065 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/15211/checks |
| twitter:image | https://avatars.githubusercontent.com/u/532281?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/532281?s=400&v=4 |
| og:image:alt | This is a first working version, looking for some user testing and feedback! This allows most progress bars to just work in IDLE, rather than flooding the shell window and sometimes slowing it down... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| 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 full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width