Title: Should str.format allow negative indexes when used for __getitem__ access? · Issue #52199 · python/cpython · GitHub
Open Graph Title: Should str.format allow negative indexes when used for __getitem__ access? · Issue #52199 · python/cpython
X Title: Should str.format allow negative indexes when used for __getitem__ access? · Issue #52199 · python/cpython
Description: BPO 7951 Nosy @rhettinger, @terryjreedy, @mdickinson, @ericvsmith, @merwok, @florentx, @rovitotv, @marco-buttu, @ikamensh, @iritkatriel Files format_negative_indexes-2.7.diff: patch against trunkformat_negative_indexes-3.2.diff: patch ag...
Open Graph Description: BPO 7951 Nosy @rhettinger, @terryjreedy, @mdickinson, @ericvsmith, @merwok, @florentx, @rovitotv, @marco-buttu, @ikamensh, @iritkatriel Files format_negative_indexes-2.7.diff: patch against trunkfo...
X Description: BPO 7951 Nosy @rhettinger, @terryjreedy, @mdickinson, @ericvsmith, @merwok, @florentx, @rovitotv, @marco-buttu, @ikamensh, @iritkatriel Files format_negative_indexes-2.7.diff: patch against trunkfo...
Opengraph URL: https://github.com/python/cpython/issues/52199
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Should str.format allow negative indexes when used for __getitem__ access?","articleBody":"BPO | [7951](https://bugs.python.org/issue7951)\n--- | :---\nNosy | @rhettinger, @terryjreedy, @mdickinson, @ericvsmith, @merwok, @florentx, @rovitotv, @marco-buttu, @ikamensh, @iritkatriel\nFiles | \u003cli\u003e[format_negative_indexes-2.7.diff](https://bugs.python.org/file17712/format_negative_indexes-2.7.diff \"Uploaded as text/plain at 2010-06-18.19:50:38 by gosella\"): patch against trunk\u003c/li\u003e\u003cli\u003e[format_negative_indexes-3.2.diff](https://bugs.python.org/file17713/format_negative_indexes-3.2.diff \"Uploaded as text/plain at 2010-06-18.19:52:52 by gosella\"): patch against 3.2\u003c/li\u003e\u003cli\u003e[format_no_fields_with_negative_indexes-2.7.diff](https://bugs.python.org/file17768/format_no_fields_with_negative_indexes-2.7.diff \"Uploaded as text/plain at 2010-06-25.18:48:21 by gosella\"): Don't allow negative fields\u003c/li\u003e\u003cli\u003e[7951NegativeIndexesForStringFormat3dot4.patch](https://bugs.python.org/file29948/7951NegativeIndexesForStringFormat3dot4.patch \"Uploaded as text/plain at 2013-04-20.03:06:40 by @rovitotv\")\u003c/li\u003e\n\n\u003csup\u003e*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*\u003c/sup\u003e\n\n\u003cdetails\u003e\u003csummary\u003eShow more details\u003c/summary\u003e\u003cp\u003e\n\nGitHub fields:\n```python\nassignee = 'https://github.com/terryjreedy'\nclosed_at = \u003cDate 2021-12-01.01:47:31.771\u003e\ncreated_at = \u003cDate 2010-02-17.23:54:17.722\u003e\nlabels = ['easy', '3.11', 'type-feature', 'docs']\ntitle = 'Should str.format allow negative indexes when used for __getitem__ access?'\nupdated_at = \u003cDate 2021-12-01.01:47:31.769\u003e\nuser = 'https://github.com/ericvsmith'\n```\n\nbugs.python.org fields:\n```python\nactivity = \u003cDate 2021-12-01.01:47:31.769\u003e\nactor = 'eric.smith'\nassignee = 'terry.reedy'\nclosed = True\nclosed_date = \u003cDate 2021-12-01.01:47:31.771\u003e\ncloser = 'eric.smith'\ncomponents = ['Documentation']\ncreation = \u003cDate 2010-02-17.23:54:17.722\u003e\ncreator = 'eric.smith'\ndependencies = []\nfiles = ['17712', '17713', '17768', '29948']\nhgrepos = []\nissue_num = 7951\nkeywords = ['patch', 'easy']\nmessage_count = 33.0\nmessages = ['99482', '99553', '107766', '107776', '107781', '107792', '107793', '107801', '107811', '107845', '108132', '108133', '108143', '108144', '108472', '108617', '113447', '113620', '113624', '115981', '116244', '187404', '190102', '215958', '216038', '225505', '266481', '340877', '340884', '347795', '407301', '407328', '407422']\nnosy_count = 14.0\nnosy_names = ['rhettinger', 'terry.reedy', 'mark.dickinson', 'eric.smith', 'kisielk', 'eric.araujo', 'mrabarnett', 'flox', 'docs@python', 'gosella', 'Todd.Rovito', 'marco.buttu', 'Ilya Kamenshchikov', 'iritkatriel']\npr_nums = []\npriority = 'normal'\nresolution = 'wont fix'\nstage = 'resolved'\nstatus = 'closed'\nsuperseder = None\ntype = 'enhancement'\nurl = 'https://bugs.python.org/issue7951'\nversions = ['Python 3.11']\n```\n\n\u003c/p\u003e\u003c/details\u003e\n","author":{"url":"https://github.com/ericvsmith","@type":"Person","name":"ericvsmith"},"datePublished":"2010-02-17T23:54:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":33},"url":"https://github.com/52199/cpython/issues/52199"}
| 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:d0c16f1a-f0db-263a-e081-56e8294f0755 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 82B2:1691AA:172CBAB:1F81AF9:6A4F07A4 |
| html-safe-nonce | e4b3ae1e38ae5b35e8bf82a685aebb77e06c0225badaac6d7a3b3c30486eb425 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MkIyOjE2OTFBQToxNzJDQkFCOjFGODFBRjk6NkE0RjA3QTQiLCJ2aXNpdG9yX2lkIjoiMjk5NjA4NjE1NzE2NTM5NzkyNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 331281bc28364fd06c093c11787ccb494becc662a10122408fd66b804df8e1e0 |
| hovercard-subject-tag | issue:1198852354 |
| 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/python/cpython/52199/issue_layout |
| twitter:image | https://opengraph.githubassets.com/23ce0e29111af33fd0a11bbf4b6e0d168f908fad29b287780a952b5e1050a547/python/cpython/issues/52199 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/23ce0e29111af33fd0a11bbf4b6e0d168f908fad29b287780a952b5e1050a547/python/cpython/issues/52199 |
| og:image:alt | BPO 7951 Nosy @rhettinger, @terryjreedy, @mdickinson, @ericvsmith, @merwok, @florentx, @rovitotv, @marco-buttu, @ikamensh, @iritkatriel Files format_negative_indexes-2.7.diff: patch against trunkfo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ericvsmith |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b8f23afb982271f1b22258a94aede67a6b77760 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width