◐ Shell
clean mode source ↗

bpo-32030: Cleanup pymain_main() by vstinner · Pull Request #4935 · python/cpython

@vstinner

* Reorganize pymain_main() to make the code more flat
* Clear configurations before pymain_update_sys_path()
* Mark Py_FatalError() and _Py_FatalInitError() with _Py_NO_RETURN
* Replace _PyMain.run_code variable with a new RUN_CODE() macro
* Move _PyMain.cf into a local variable in pymain_run_python()