Title: Off-by-one index error in __main__.py doc · Issue #112165 · python/cpython · GitHub
Open Graph Title: Off-by-one index error in __main__.py doc · Issue #112165 · python/cpython
X Title: Off-by-one index error in __main__.py doc · Issue #112165 · python/cpython
Description: Very minor issue, the '2' here should be '3' on the RHS of the comparison (given we really want to return sys.argv[2] from the ternary). https://docs.python.org/3.10/library/__main__.html Linked PRs gh-112183 gh-112184 gh-112185
Open Graph Description: Very minor issue, the '2' here should be '3' on the RHS of the comparison (given we really want to return sys.argv[2] from the ternary). https://docs.python.org/3.10/library/__main__.html Linked PR...
X Description: Very minor issue, the '2' here should be '3' on the RHS of the comparison (given we really want to return sys.argv[2] from the ternary). https://docs.python.org/3.10/library/__main_...
Opengraph URL: https://github.com/python/cpython/issues/112165
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Off-by-one index error in __main__.py doc","articleBody":"Very minor issue, the '2' here should be '3' on the RHS of the comparison (given we really want to return sys.argv[2] from the ternary).\r\n\r\n\u003cimg width=\"635\" alt=\"image\" src=\"https://github.com/python/cpython/assets/135147320/77b4c680-0c6e-48e1-9642-6e2fa55f8bae\"\u003e\r\n\r\nhttps://docs.python.org/3.10/library/__main__.html\r\n\r\n\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-112183\n* gh-112184\n* gh-112185\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/vanyolos","@type":"Person","name":"vanyolos"},"datePublished":"2023-11-16T16:07:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/112165/cpython/issues/112165"}
| 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:37d9ba8a-f427-060c-7589-8e787400bf35 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EA22:2CBE2A:1CF9665:289958A:696A56E3 |
| html-safe-nonce | 323a66307cb6d3da96f6ba62046c5e1fd2497aecb876b3b1c104932803b8ae2f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTIyOjJDQkUyQToxQ0Y5NjY1OjI4OTk1OEE6Njk2QTU2RTMiLCJ2aXNpdG9yX2lkIjoiNDgyMjYyNDY1ODgxMDA5OTQyNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 389afabc28c284175fd867fd7d5cef1b12b49eaad2898f78227578be69f20b9a |
| hovercard-subject-tag | issue:1997211760 |
| 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/112165/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e5618b5d5a39cfb3323bd69cdb17062c9b6653c0c8292d63d320d45e1ec9750b/python/cpython/issues/112165 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e5618b5d5a39cfb3323bd69cdb17062c9b6653c0c8292d63d320d45e1ec9750b/python/cpython/issues/112165 |
| og:image:alt | Very minor issue, the '2' here should be '3' on the RHS of the comparison (given we really want to return sys.argv[2] from the ternary). https://docs.python.org/3.10/library/__main__.html Linked PR... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vanyolos |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3f871c8e07f0ae1886fa8dac284166d28b09ad5bada6476fc10b674e489788ef |
| 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 | 63c426b30d262aba269ef14c40e3c817b384cd61 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width