Title: bpo-32573: Handle the case when sys.argv is not set by uellue · Pull Request #12463 · python/cpython · GitHub
Open Graph Title: bpo-32573: Handle the case when sys.argv is not set by uellue · Pull Request #12463 · python/cpython
X Title: bpo-32573: Handle the case when sys.argv is not set by uellue · Pull Request #12463 · python/cpython
Description: I encountered a situation where sys.argv wasn't set when using Python as an embedded interpreter. The proposed update will avoid an AttributeError in that case. If sys.argv is set, it should not change behavior. There's discussions related to correct behavior in this case: https://bugs.python.org/issue32573 Is this proposed update to spawn.py the correct fix, or should the embedded case be handled differently, somehow? https://bugs.python.org/issue32573
Open Graph Description: I encountered a situation where sys.argv wasn't set when using Python as an embedded interpreter. The proposed update will avoid an AttributeError in that case. If sys.argv is set, it should no...
X Description: I encountered a situation where sys.argv wasn't set when using Python as an embedded interpreter. The proposed update will avoid an AttributeError in that case. If sys.argv is set, it shoul...
Opengraph URL: https://github.com/python/cpython/pull/12463
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:4911549b-d2f8-0828-262f-e4db3a5c4bc1 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C86A:4F8A:261FB59:347BE18:6A4F4058 |
| html-safe-nonce | 0bbfeaa901a6089a5053bb00b4cff963a166fe5f3b355f87f303f1a0254cdd01 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODZBOjRGOEE6MjYxRkI1OTozNDdCRTE4OjZBNEY0MDU4IiwidmlzaXRvcl9pZCI6IjYyNzgxMjEzMjY2MjUzNzQyOTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2d098b3c7a5b07d4bab67f2390514bf617851783711a250aeb5d1c8256234245 |
| hovercard-subject-tag | pull_request:262768295 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/python/cpython/pull/12463/files |
| twitter:image | https://avatars.githubusercontent.com/u/25689052?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/25689052?s=400&v=4 |
| og:image:alt | I encountered a situation where sys.argv wasn't set when using Python as an embedded interpreter. The proposed update will avoid an AttributeError in that case. If sys.argv is set, it should no... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width