Title: `AssertionError` when `print()`ing carriage return character · Issue #900 · bpython/bpython · GitHub
Open Graph Title: `AssertionError` when `print()`ing carriage return character · Issue #900 · bpython/bpython
X Title: `AssertionError` when `print()`ing carriage return character · Issue #900 · bpython/bpython
Description: The most succinct example I have found is this: $ bpython bpython version 0.21 on top of Python 3.9.4 /Users/hop/Library/PipXEnvs/venvs/bpython/bin/python >>> print('', end='\r') Traceback (most recent call last): File "/Users/hop/bin/bp...
Open Graph Description: The most succinct example I have found is this: $ bpython bpython version 0.21 on top of Python 3.9.4 /Users/hop/Library/PipXEnvs/venvs/bpython/bin/python >>> print('', end='\r') Traceback (most re...
X Description: The most succinct example I have found is this: $ bpython bpython version 0.21 on top of Python 3.9.4 /Users/hop/Library/PipXEnvs/venvs/bpython/bin/python >>> print('', end='\r...
Opengraph URL: https://github.com/bpython/bpython/issues/900
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`AssertionError` when `print()`ing carriage return character","articleBody":"The most succinct example I have found is this:\r\n\r\n```\r\n$ bpython\r\nbpython version 0.21 on top of Python 3.9.4 /Users/hop/Library/PipXEnvs/venvs/bpython/bin/python\r\n>>> print('', end='\\r')\r\n\r\nTraceback (most recent call last):\r\n File \"/Users/hop/bin/bpython\", line 8, in \u003cmodule>\r\n sys.exit(main())\r\n File \"/Users/hop/Library/PipXEnvs/venvs/bpython/lib/python3.9/site-packages/bpython/curtsies.py\", line 201, in main\r\n exit_value = repl.mainloop(True, paste)\r\n File \"/Users/hop/Library/PipXEnvs/venvs/bpython/lib/python3.9/site-packages/bpython/curtsies.py\", line 121, in mainloop\r\n self.process_event_and_paint(e)\r\n File \"/Users/hop/Library/PipXEnvs/venvs/bpython/lib/python3.9/site-packages/bpython/curtsies.py\", line 95, in process_event_and_paint\r\n array, cursor_pos = self.paint()\r\n File \"/Users/hop/Library/PipXEnvs/venvs/bpython/lib/python3.9/site-packages/bpython/curtsiesfrontend/repl.py\", line 1610, in paint\r\n assert cursor_row >= 0 and cursor_column >= 0, (\r\nAssertionError: (-1, 79, 5, 0, 0)\r\n```\r\n\r\nAnother variation leading to a crash is `print('\\r', end='')`.\r\n\r\n`print('\\r\\n', end='')` does not crash, while `print('\\n\\r', end='')` will.","author":{"url":"https://github.com/hop","@type":"Person","name":"hop"},"datePublished":"2021-06-15T01:53:51Z","url":"https://github.com/bpython/bpython/issues/900"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9be56342-470b-6d77-8591-28aecd469fba |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A10A:26ECEB:3E408BA:4F1943D:6B01FDAC |
| html-safe-nonce | f11982560cc2d6c08e7e7f1bdac909053339a14cbc585171ea50edbfa0c694ae |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTBBOjI2RUNFQjozRTQwOEJBOjRGMTk0M0Q6NkIwMUZEQUMiLCJ2aXNpdG9yX2lkIjoiMTE5NDU4MzI5OTA1ODY5NTU5NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 42e1c4a051129ba541d7df597d4008f51da7d9a968c3be82da65c11f4abf6e26 |
| hovercard-subject-tag | issue:920912096 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/bpython/bpython/900/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ebf4c7b063a6c6cac20813755696cc2a78c19a7299a7e0be18e607108e55fc8f/bpython/bpython/issues/900 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ebf4c7b063a6c6cac20813755696cc2a78c19a7299a7e0be18e607108e55fc8f/bpython/bpython/issues/900 |
| og:image:alt | The most succinct example I have found is this: $ bpython bpython version 0.21 on top of Python 3.9.4 /Users/hop/Library/PipXEnvs/venvs/bpython/bin/python >>> print('', end='\r') Traceback (most re... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hop |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/bpython/bpython git https://github.com/bpython/bpython.git |
| octolytics-dimension-user_id | 8071396 |
| octolytics-dimension-user_login | bpython |
| octolytics-dimension-repository_id | 21508865 |
| octolytics-dimension-repository_nwo | bpython/bpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21508865 |
| octolytics-dimension-repository_network_root_nwo | bpython/bpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width