Title: exit(), panic if code >= 2**31 · Issue #1742 · RustPython/RustPython · GitHub
Open Graph Title: exit(), panic if code >= 2**31 · Issue #1742 · RustPython/RustPython
X Title: exit(), panic if code >= 2**31 · Issue #1742 · RustPython/RustPython
Description: code exit(2**31) result thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /rustc/412f43ac5b4ae8c3599e71c6972112e9be4758fa/src/libcore/macros/mod.rs:15:40 expected result in cpython if exit code overflow fallback to 0
Open Graph Description: code exit(2**31) result thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /rustc/412f43ac5b4ae8c3599e71c6972112e9be4758fa/src/libcore/macros/mod.rs:15:40 expected result in c...
X Description: code exit(2**31) result thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /rustc/412f43ac5b4ae8c3599e71c6972112e9be4758fa/src/libcore/macros/mod.rs:15:40 expe...
Opengraph URL: https://github.com/RustPython/RustPython/issues/1742
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"exit(), panic if code \u003e= 2**31","articleBody":"## code\r\n`exit(2**31)`\r\n\r\n## result\r\n```thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /rustc/412f43ac5b4ae8c3599e71c6972112e9be4758fa/src/libcore/macros/mod.rs:15:40```\r\n\r\n## expected result\r\nin cpython if exit code overflow fallback to 0","author":{"url":"https://github.com/andrew-ld","@type":"Person","name":"andrew-ld"},"datePublished":"2020-02-03T14:33:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/1742/RustPython/issues/1742"}
| 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:9c304f3b-3fe6-4a39-4110-85f6e0c4483b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B69A:3FC84B:1C66D8A:2859E03:6A5908C5 |
| html-safe-nonce | 42aa73ccea634acf200ed3b5982ad02441c15da72e9fa3de7da090b84929bb3a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjlBOjNGQzg0QjoxQzY2RDhBOjI4NTlFMDM6NkE1OTA4QzUiLCJ2aXNpdG9yX2lkIjoiODM5NDg4MDgxNDQwNDkyOTczMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a36187511434c80dbf8827c552e0c7c616286065569cd75411fc68a47b40f262 |
| hovercard-subject-tag | issue:559122518 |
| 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/RustPython/RustPython/1742/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1e8631cdfe2d84c400db3021b9f2256d8381566bdb42c49f0ac780417b962eb0/RustPython/RustPython/issues/1742 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1e8631cdfe2d84c400db3021b9f2256d8381566bdb42c49f0ac780417b962eb0/RustPython/RustPython/issues/1742 |
| og:image:alt | code exit(2**31) result thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /rustc/412f43ac5b4ae8c3599e71c6972112e9be4758fa/src/libcore/macros/mod.rs:15:40 expected result in c... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | andrew-ld |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4eb8ea312922ccce63e833964f9606d971cffb2d5b6c10a62c4a7dcc48d826e2 |
| turbo-cache-control | no-preview |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| 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 | 886a6c6fbce3d3caad5b3b995ef09ff6ca23f10e |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width