]> granicus.if.org Git - python/commit
bpo-32030: Cleanup pymain_main() (#4935)
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 20 Dec 2017 00:41:59 +0000 (01:41 +0100)
committerGitHub <noreply@github.com>
Wed, 20 Dec 2017 00:41:59 +0000 (01:41 +0100)
commit19760863623b636a63ccf649107d9504c6465a92
tree24af9006d93fb8cb5321c0766394f78e2b17565c
parentc4bca951065f4b2b6833f6ce7a0721e863e2343e
bpo-32030: Cleanup pymain_main() (#4935)

* 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()
Modules/main.c
Python/pylifecycle.c