Title: [3.7] bpo-34783: Fix Py_Main() by vstinner · Pull Request #9526 · python/cpython · GitHub
Open Graph Title: [3.7] bpo-34783: Fix Py_Main() by vstinner · Pull Request #9526 · python/cpython
X Title: [3.7] bpo-34783: Fix Py_Main() by vstinner · Pull Request #9526 · python/cpython
Description: Fix a crash with musl libc (on Alpine Linux) when the script filename specified on the command line doesn't exist. pymain_open_filename() now gets the current core configuration from the interpreter state. Modify the code to make it closer to the master branch: Rename _Py_CommandLineDetails to _PyCmdline Remove _PyMain.config: replaced with a local variable 'local_config' in pymain_init() Reorganize pymain_main(): move code using the "local config" into pymain_init() As soon as possible, switch from the local config to the core configuration attached to the interpreter. https://bugs.python.org/issue34783
Open Graph Description: Fix a crash with musl libc (on Alpine Linux) when the script filename specified on the command line doesn't exist. pymain_open_filename() now gets the current core configuration from the interp...
X Description: Fix a crash with musl libc (on Alpine Linux) when the script filename specified on the command line doesn't exist. pymain_open_filename() now gets the current core configuration from the in...
Opengraph URL: https://github.com/python/cpython/pull/9526
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:6b457404-87b4-d1cd-b8e3-73336f9f8976 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | ACD2:2A854D:20BC080:2F5143D:6A5503C1 |
| html-safe-nonce | 5f222c6e54d6d9fec6181dfff62e0a96fccc86d7cdb04736c5fc9f98ad535398 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQ0QyOjJBODU0RDoyMEJDMDgwOjJGNTE0M0Q6NkE1NTAzQzEiLCJ2aXNpdG9yX2lkIjoiMzY1ODg5NzQ0MTcwMzY1ODQzMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5973b4a6eebd443d90a38539772dd0f22f7d77f30f14e0a721372ce45399b1f5 |
| hovercard-subject-tag | pull_request:217600733 |
| 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/9526/files |
| twitter:image | https://avatars.githubusercontent.com/u/194129?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/194129?s=400&v=4 |
| og:image:alt | Fix a crash with musl libc (on Alpine Linux) when the script filename specified on the command line doesn't exist. pymain_open_filename() now gets the current core configuration from the interp... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | eae2aab99907699a22d2c8449aa683ca74454fca87211b98f7c7b722086b2839 |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6a35ab858be185cd86d12b93a43bccf34e8d8536 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width