Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Dec 13, 2017

Changes:

  • Split _PySys_SetArgvWithError() into subfunctions for Py_Main():

    • Create the Python list object
    • Set sys.argv to the list
    • Compute argv0
    • Prepend argv0 to sys.path
  • Add _PyPathConfig_ComputeArgv0()

  • Remove _PySys_SetArgvWithError()

  • Py_Main() now splits the code to compute sys.argv/path0 and the
    code to update the sys module: add pymain_compute_argv()
    subfunction.

https://bugs.python.org/issue32030

Changes:

* Split _PySys_SetArgvWithError() into subfunctions for Py_Main():

  * Create the Python list object
  * Set sys.argv to the list
  * Compute argv0
  * Prepend argv0 to sys.path

* Add _PyPathConfig_ComputeArgv0()
* Remove _PySys_SetArgvWithError()
* Py_Main() now splits the code to compute sys.argv/path0 and the
  code to update the sys module: add pymain_compute_argv()
  subfunction.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants