commit | d5dda98fa80405db82e2eb36ac48671b4c8c0983 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Wed Dec 13 17:31:16 2017 +0100 |
committer | GitHub <noreply@github.com> | Wed Dec 13 17:31:16 2017 +0100 |
tree | ddece44d8035bccea47121caf6c55932ba44301e | |
parent | 981469794af8c693174544265b0c19cbe6d2b457 [diff] |
pymain_set_sys_argv() now copies argv (#4838) bpo-29240, bpo-32030: * Rename pymain_set_argv() to pymain_set_sys_argv() * pymain_set_sys_argv() now creates of copy of argv and modify the copy, rather than modifying pymain->argv * Call pymain_set_sys_argv() earlier: before pymain_run_python(), but after pymain_get_importer(). * Add _PySys_SetArgvWithError() to handle errors