Title: error handling in the compiler is inconsistent · Issue #99955 · python/cpython · GitHub
Open Graph Title: error handling in the compiler is inconsistent · Issue #99955 · python/cpython
X Title: error handling in the compiler is inconsistent · Issue #99955 · python/cpython
Description: In compile.c some function return 0 for failure and 1 for success, and some return -1 for failure and 0 for success. Should be -1 / 0 consistently. Linked PRs gh-99956 gh-100010 gh-100215 gh-101412
Open Graph Description: In compile.c some function return 0 for failure and 1 for success, and some return -1 for failure and 0 for success. Should be -1 / 0 consistently. Linked PRs gh-99956 gh-100010 gh-100215 gh-101412
X Description: In compile.c some function return 0 for failure and 1 for success, and some return -1 for failure and 0 for success. Should be -1 / 0 consistently. Linked PRs gh-99956 gh-100010 gh-100215 gh-101412
Opengraph URL: https://github.com/python/cpython/issues/99955
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"error handling in the compiler is inconsistent","articleBody":"In compile.c some function return 0 for failure and 1 for success, and some return -1 for failure and 0 for success. \r\n\r\nShould be -1 / 0 consistently.\r\n\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-99956\n* gh-100010\n* gh-100215\n* gh-101412\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/iritkatriel","@type":"Person","name":"iritkatriel"},"datePublished":"2022-12-02T16:58:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/99955/cpython/issues/99955"}
| 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:bf0f3d26-6053-169f-bc2b-da7d4c437fc7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DFDC:A4D20:58B775:79308B:6969DC07 |
| html-safe-nonce | 6eab573caee4f147d509c46402b7c6f1de6f354c44fd132b4f52d84c2f8cd666 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERkRDOkE0RDIwOjU4Qjc3NTo3OTMwOEI6Njk2OURDMDciLCJ2aXNpdG9yX2lkIjoiMjIyODMyMjg3NTY3Mzc5NTU5MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2feb750249d0e40061fe3483277c4159792c8ee93a36575ef210dff17f6dcd17 |
| hovercard-subject-tag | issue:1473163504 |
| 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/99955/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c435159465249ddb2410e67157b631d914222f0a685d492169936fe940e6b7cb/python/cpython/issues/99955 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c435159465249ddb2410e67157b631d914222f0a685d492169936fe940e6b7cb/python/cpython/issues/99955 |
| og:image:alt | In compile.c some function return 0 for failure and 1 for success, and some return -1 for failure and 0 for success. Should be -1 / 0 consistently. Linked PRs gh-99956 gh-100010 gh-100215 gh-101412 |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | iritkatriel |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| 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 | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width