Title: bpo-36142: Move command line parsing to coreconfig.c by vstinner · Pull Request #12123 · python/cpython · GitHub
Open Graph Title: bpo-36142: Move command line parsing to coreconfig.c by vstinner · Pull Request #12123 · python/cpython
X Title: bpo-36142: Move command line parsing to coreconfig.c by vstinner · Pull Request #12123 · python/cpython
Description: Add _PyCoreConfig_ReadFromArgv() function which parses command line options: move code from main.c to coreconfig.c. Add _PyCoreConfig_Write() to write the new configuration: coerce the LC_CTYPE locale, set Py_xxx global configuration variables, etc. _PyCoreConfig_ReadFromArgv() now only changes the LC_CTYPE locale temporarily. _PyCoreConfig_Write() becomes responsible to set the LC_CTYPE locale. Add _Py_SetArgcArgv() and _Py_ClearArgcArgv() functions Rename many "pymain_xxx()" functions Add "const" to some function parameters Reorganize main.c to declare functions in the order in which they are called. https://bugs.python.org/issue36142
Open Graph Description: Add _PyCoreConfig_ReadFromArgv() function which parses command line options: move code from main.c to coreconfig.c. Add _PyCoreConfig_Write() to write the new configuration: coerce the LC_CTYPE loc...
X Description: Add _PyCoreConfig_ReadFromArgv() function which parses command line options: move code from main.c to coreconfig.c. Add _PyCoreConfig_Write() to write the new configuration: coerce the LC_CTYPE loc...
Opengraph URL: https://github.com/python/cpython/pull/12123
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:133a96a9-c713-1c57-41bd-3b2ef5ed14df |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8884:1D90CC:7BD06E:A6D51B:6A4EC484 |
| html-safe-nonce | 1a51d09b3b5fca70ba703f22764666c8d0e881b18b9e32e50acf6a5e63747282 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODg0OjFEOTBDQzo3QkQwNkU6QTZENTFCOjZBNEVDNDg0IiwidmlzaXRvcl9pZCI6IjIwMDc2Mzc3NDA4MDQyOTM3NjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a0d98e302ef14b6bb98edf689aa16a54152789307dd8dbf4b3eea9e0e61da510 |
| hovercard-subject-tag | pull_request:257462782 |
| 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/12123/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 | Add _PyCoreConfig_ReadFromArgv() function which parses command line options: move code from main.c to coreconfig.c. Add _PyCoreConfig_Write() to write the new configuration: coerce the LC_CTYPE loc... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| 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 | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width