Title: bpo-36301: Add _PyWstrList structure by vstinner · Pull Request #12343 · python/cpython · GitHub
Open Graph Title: bpo-36301: Add _PyWstrList structure by vstinner · Pull Request #12343 · python/cpython
X Title: bpo-36301: Add _PyWstrList structure by vstinner · Pull Request #12343 · python/cpython
Description: Replace messy _Py_wstrlist_xxx() functions with a new clean _PyWstrList structure and new _PyWstrList_xxx() functions. Changes: Add _PyCoreConfig.use_module_search_paths to decide if _PyCoreConfig.module_search_paths should be computed or not, to support empty search path list. _PyWstrList_Clear() sets length to 0 and items to NULL, whereas _Py_wstrlist_clear() only freed memory. _PyWstrList_Append() returns an int, whereas _Py_wstrlist_append() returned _PyInitError. _PyWstrList uses Py_ssize_t for the length, instead of int. Replace (int, wchar_t**) with _PyWstrList in: _PyPreConfig _PyCoreConfig _PyPreCmdline _PyCmdline Replace "int orig_argv; wchar_t **orig_argv;" with "_PyWstrList orig_argv". _PyCmdline and _PyPreCmdline now also copy wchar_argv. Rename _PyArgv_Decode() to _PyArgv_AsWstrList(). PySys_SetArgvEx() now pass the fixed (argc, argv) to _PyPathConfig_ComputeArgv0() (don't pass negative argc or NULL argv). https://bugs.python.org/issue36301
Open Graph Description: Replace messy _Py_wstrlist_xxx() functions with a new clean _PyWstrList structure and new _PyWstrList_xxx() functions. Changes: Add _PyCoreConfig.use_module_search_paths to decide if _PyCoreConfi...
X Description: Replace messy _Py_wstrlist_xxx() functions with a new clean _PyWstrList structure and new _PyWstrList_xxx() functions. Changes: Add _PyCoreConfig.use_module_search_paths to decide if _PyCoreConfi...
Opengraph URL: https://github.com/python/cpython/pull/12343
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:78b11595-d825-5dd1-09b0-b141ac1565b0 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BFF4:3FD636:24DAF6F:32F2832:6A4F4B11 |
| html-safe-nonce | 8dea38cd384f8a7ea88ccb6d178838f19f5e7df94f6c75c0e0872454e3fedf0f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRkY0OjNGRDYzNjoyNERBRjZGOjMyRjI4MzI6NkE0RjRCMTEiLCJ2aXNpdG9yX2lkIjoiMTIyMDg4Njc5NTQ1OTE4NTQyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1408ead14d9c6888b3ec02be9fcfd9d30dfc47a3a8d64d3cc9c4e64bf83c2464 |
| hovercard-subject-tag | pull_request:261545632 |
| 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/12343/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 | Replace messy _Py_wstrlist_xxx() functions with a new clean _PyWstrList structure and new _PyWstrList_xxx() functions. Changes: Add _PyCoreConfig.use_module_search_paths to decide if _PyCoreConfi... |
| 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 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 | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width