Title: Inconsistent behavior when using ellipsis (...) versus pass in function/class definition · Issue #979 · bpython/bpython · GitHub
Open Graph Title: Inconsistent behavior when using ellipsis (...) versus pass in function/class definition · Issue #979 · bpython/bpython
X Title: Inconsistent behavior when using ellipsis (...) versus pass in function/class definition · Issue #979 · bpython/bpython
Description: Notice it takes one more
Open Graph Description: Notice it takes one more
X Description: Notice it takes one more <enter> press to get the >>> prompt back when using ... in a function or class body, compared to using pass. On the "extra" line with the three-dot...
Opengraph URL: https://github.com/bpython/bpython/issues/979
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Inconsistent behavior when using ellipsis (...) versus pass in function/class definition","articleBody":"Notice it takes one more \\\u003center\\\u003e press to get the `\u003e\u003e\u003e` prompt back when using `...` in a function or class body, compared to using `pass`. On the \"extra\" line with the three-dots prompt, the cursor is not auto-indented, either. I've added underscores to show where the cursor appears on each line.\r\n\r\n```\r\nbpython version 0.23 on top of Python 3.11.1 /Users/eric/.pyenv/versions/3.11.1/bin/python3.11\r\n\u003e\u003e\u003e def foo():\r\n... ...\r\n... _\r\n... _\r\n\u003e\u003e\u003e def bar():\r\n... pass\r\n... _\r\n\u003e\u003e\u003e class Foo():\r\n... ...\r\n... _\r\n... _\r\n\u003e\u003e\u003e class Bar():\r\n... pass\r\n... _\r\n\u003e\u003e\u003e\r\n```\r\n\r\nFor reference, the standard `python` console:\r\n```\r\nPython 3.11.1 (main, Jan 11 2023, 13:54:50) [Clang 13.0.0 (clang-1300.0.29.30)] on darwin\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n\u003e\u003e\u003e def foo():\r\n... ...\r\n...\r\n\u003e\u003e\u003e def bar():\r\n... pass\r\n...\r\n\u003e\u003e\u003e class Foo():\r\n... ...\r\n...\r\n\u003e\u003e\u003e class Bar():\r\n... pass\r\n...\r\n\u003e\u003e\u003e\r\n```","author":{"url":"https://github.com/ericmburgess","@type":"Person","name":"ericmburgess"},"datePublished":"2023-01-13T17:37:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/979/bpython/issues/979"}
| 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:bdc83743-eb20-de4c-62eb-0d1fd1d3664a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 933C:1422F4:6EF81B1:98A1CC8:69676193 |
| html-safe-nonce | 53289655cb5acf475b900e9000ea2acd678991531790e3d9821c5f870a507d93 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzNDOjE0MjJGNDo2RUY4MUIxOjk4QTFDQzg6Njk2NzYxOTMiLCJ2aXNpdG9yX2lkIjoiMjQ5MDAwMDc2NzU2OTA2MDI0MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8fea8b9c8a67ac0e5c33c489381b8480e89d4675a28ac5bd4ebd494806506c64 |
| hovercard-subject-tag | issue:1532683462 |
| 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/979/issue_layout |
| twitter:image | https://opengraph.githubassets.com/25231156e86befd64c5e0002110fabbdc09440980c408bee76bbf862cc768629/bpython/bpython/issues/979 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/25231156e86befd64c5e0002110fabbdc09440980c408bee76bbf862cc768629/bpython/bpython/issues/979 |
| og:image:alt | Notice it takes one more |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ericmburgess |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1a6a4ac66aaa8be0077b72a69fd56fb51cd11215a1e31f0365079e012987234a |
| 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 | 045909cd564d790cacd96dcb8722039dff679d63 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width