Title: autocomplete could work for items in lists, tuples, etc · Issue #37 · bpython/bpython · GitHub
Open Graph Title: autocomplete could work for items in lists, tuples, etc · Issue #37 · bpython/bpython
X Title: autocomplete could work for items in lists, tuples, etc · Issue #37 · bpython/bpython
Description: In the following case (where -!- is the cursor position): l = ['foo', 'bar', 'baz'] l[0].-!- It won't autocomplete with string methods. This makes sense in the general case, because l[0] could be a method call, but if type(l) is list, bp...
Open Graph Description: In the following case (where -!- is the cursor position): l = ['foo', 'bar', 'baz'] l[0].-!- It won't autocomplete with string methods. This makes sense in the general case, because l[0] could be a...
X Description: In the following case (where -!- is the cursor position): l = ['foo', 'bar', 'baz'] l[0].-!- It won't autocomplete with string methods. This makes sense in the general c...
Opengraph URL: https://github.com/bpython/bpython/issues/37
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"autocomplete could work for items in lists, tuples, etc","articleBody":"In the following case (where -!- is the cursor position):\n\n\u003e \u003e \u003e l = ['foo', 'bar', 'baz']\n\u003e \u003e \u003e l[0].-!-\n\nIt won't autocomplete with string methods.\n\nThis makes sense in the general case, because l[0] could be a method call, but if type(l) is list, bpython could autocomplete according with the type of l[0] without any side effects. The same could be done for tuples, and dicts.\n\nIt may be reasonably safe to extend this to subclasses of list, tuple and dicts too. This way it would work for nametuples, defaultdicts, etc...\n\n---\n- Bitbucket: https://bitbucket.org/bobf/bpython/issue/37\n- Originally Reported By: [ ](http://bitbucket.org/nilton)\n- Originally Created At: 2009-06-15T03:43:57.160\n","author":{"url":"https://github.com/ikanobori","@type":"Person","name":"ikanobori"},"datePublished":"2014-07-04T23:03:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/37/bpython/issues/37"}
| 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:2f4f442d-9dab-0216-5e4c-a817c278fab2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 96F2:24A66C:1AC11B:244EC9:696954AB |
| html-safe-nonce | a2a4273c7cc0afc2d3a98381a15f6bdde9276dd19ee1f0a79856c6a99a73f378 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NkYyOjI0QTY2QzoxQUMxMUI6MjQ0RUM5OjY5Njk1NEFCIiwidmlzaXRvcl9pZCI6Ijc5NTg5NzU3MzU4ODU1NTA3NjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ed9b39bc84ea8280976419b7a696215feafb70c8f1eae2e7ce6daf17d8f1e469 |
| hovercard-subject-tag | issue:37188588 |
| 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/37/issue_layout |
| twitter:image | https://opengraph.githubassets.com/458f3d238651a2244c0e90a61f2bf91add6d666effb4db4e24e3262b9b0c5d0d/bpython/bpython/issues/37 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/458f3d238651a2244c0e90a61f2bf91add6d666effb4db4e24e3262b9b0c5d0d/bpython/bpython/issues/37 |
| og:image:alt | In the following case (where -!- is the cursor position): l = ['foo', 'bar', 'baz'] l[0].-!- It won't autocomplete with string methods. This makes sense in the general case, because l[0] could be a... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ikanobori |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9db5f28da7e24035385d7f349f17890cbe016a939ddd7952be0f07b862094f5a |
| 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 | 4e59fe66217d3c72925af2a341ae3a8f2b5b5b2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width