Title: bpython (master) dies on input · Issue #491 · bpython/bpython · GitHub
Open Graph Title: bpython (master) dies on input · Issue #491 · bpython/bpython
X Title: bpython (master) dies on input · Issue #491 · bpython/bpython
Description: After upgrading to the most recent commit from master I've got the following, just right on the first line, when tried to issue s='a[a.l-1]': (Tests)alex@rhyme ~/work/DispatchersTests $ bpython bpython version 0.15.dev49 on top of Python...
Open Graph Description: After upgrading to the most recent commit from master I've got the following, just right on the first line, when tried to issue s='a[a.l-1]': (Tests)alex@rhyme ~/work/DispatchersTests $ bpython bpy...
X Description: After upgrading to the most recent commit from master I've got the following, just right on the first line, when tried to issue s='a[a.l-1]': (Tests)alex@rhyme ~/work/DispatchersTests $...
Opengraph URL: https://github.com/bpython/bpython/issues/491
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bpython (master) dies on input","articleBody":"After upgrading to the most recent commit from master I've got the following, just right on the first line, when tried to issue `s='a[a.l-1]'`:\n\n```\n(Tests)alex@rhyme ~/work/DispatchersTests $ bpython\nbpython version 0.15.dev49 on top of Python 2.7.8 /home/work/users/alex/DispatchersTests/Tests/bin/python\n\u003e\u003e\u003e s = 'a[a.l-1\nTraceback (most recent call last):\n File \"/home/work/users/alex/DispatchersTests/Tests/bin/bpython\", line 9, in \u003cmodule\u003e\n load_entry_point('bpython==0.15.dev49', 'console_scripts', 'bpython')()\n File \"/home/work/users/alex/DispatchersTests/Tests/lib/python2.7/site-packages/bpython/curtsies.py\", line 81, in main\n interactive=(not exec_args))\n File \"/home/work/users/alex/DispatchersTests/Tests/lib/python2.7/site-packages/bpython/curtsies.py\", line 182, in mainloop\n process_event(e)\n File \"/home/work/users/alex/DispatchersTests/Tests/lib/python2.7/site-packages/bpython/curtsies.py\", line 140, in process_event\n repl.process_event(e)\n File \"/home/work/users/alex/DispatchersTests/Tests/lib/python2.7/site-packages/bpython/curtsiesfrontend/repl.py\", line 530, in process_event\n return self.process_key_event(e)\n File \"/home/work/users/alex/DispatchersTests/Tests/lib/python2.7/site-packages/bpython/curtsiesfrontend/repl.py\", line 671, in process_key_event\n self.add_normal_character(e)\n File \"/home/work/users/alex/DispatchersTests/Tests/lib/python2.7/site-packages/bpython/curtsiesfrontend/repl.py\", line 890, in add_normal_character\n self.cursor_offset += 1\n File \"/home/work/users/alex/DispatchersTests/Tests/lib/python2.7/site-packages/bpython/curtsiesfrontend/repl.py\", line 1405, in _set_cursor_offset\n self.update_completion()\n File \"/home/work/users/alex/DispatchersTests/Tests/lib/python2.7/site-packages/bpython/curtsiesfrontend/repl.py\", line 920, in update_completion\n self.list_win_visible = BpythonRepl.complete(self, tab)\n File \"/home/work/users/alex/DispatchersTests/Tests/lib/python2.7/site-packages/bpython/repl.py\", line 605, in complete\n history=self.history)\n File \"/home/work/users/alex/DispatchersTests/Tests/lib/python2.7/site-packages/bpython/autocomplete.py\", line 472, in get_completer_bpython\n return get_completer(BPYTHON_COMPLETER, cursor_offset, line, **kwargs)\n File \"/home/work/users/alex/DispatchersTests/Tests/lib/python2.7/site-packages/bpython/autocomplete.py\", line 452, in get_completer\n cursor_offset, line, **kwargs)\n File \"/home/work/users/alex/DispatchersTests/Tests/lib/python2.7/site-packages/bpython/autocomplete.py\", line 171, in matches\n for filename in glob(os.path.expanduser(text + '*')):\n File \"/usr/lib64/python2.7/glob.py\", line 27, in glob\n return list(iglob(pathname))\n File \"/usr/lib64/python2.7/glob.py\", line 44, in iglob\n for name in glob1(os.curdir, basename):\n File \"/usr/lib64/python2.7/glob.py\", line 78, in glob1\n return fnmatch.filter(names, pattern)\n File \"/home/work/users/alex/DispatchersTests/Tests/lib64/python2.7/fnmatch.py\", line 54, in filter\n _cache[pat] = re.compile(res)\n File \"/home/work/users/alex/DispatchersTests/Tests/lib64/python2.7/re.py\", line 190, in compile\n return _compile(pattern, flags)\n File \"/home/work/users/alex/DispatchersTests/Tests/lib64/python2.7/re.py\", line 244, in _compile\n raise error, v # invalid expression\nsre_constants.error: bad character range\n```\n\nbpython: 5880f85d87498c4ebd65ca6d18d43196845dee08\ncurtsies (0.2.2)\n","author":{"url":"https://github.com/amorozov","@type":"Person","name":"amorozov"},"datePublished":"2015-02-24T12:47:03.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/491/bpython/issues/491"}
| 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:e4b3b1ac-b58c-b790-ed8b-f00821dc397b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A21A:1940BA:17B6B7A:1FAB91F:6969AA35 |
| html-safe-nonce | 768aaec6f2c71f2722d590d8012e2329d27a5323c2054ee43a6d8f5e6ebc14f5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjFBOjE5NDBCQToxN0I2QjdBOjFGQUI5MUY6Njk2OUFBMzUiLCJ2aXNpdG9yX2lkIjoiNjkxMjczNDM1MTI1ODY1OTM4MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 85ca585d919c33e98e8239cc041f576c796e9afc9de801b2c173d4b9e72196a8 |
| hovercard-subject-tag | issue:58733428 |
| 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/491/issue_layout |
| twitter:image | https://opengraph.githubassets.com/75af486239bcffa9d9cafbd718147a21a45d4a02528ae5f2252d37f8950ed35b/bpython/bpython/issues/491 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/75af486239bcffa9d9cafbd718147a21a45d4a02528ae5f2252d37f8950ed35b/bpython/bpython/issues/491 |
| og:image:alt | After upgrading to the most recent commit from master I've got the following, just right on the first line, when tried to issue s='a[a.l-1]': (Tests)alex@rhyme ~/work/DispatchersTests $ bpython bpy... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | amorozov |
| hostname | github.com |
| expected-hostname | github.com |
| None | 24c4c97a2d520cb286b35e1a4c22d7a4df3c26a2fa28dd7cdf0e65db327b4de7 |
| 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 | 124667f43168afb6c9c03b7c02eb5b1d2e1be3d9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width