bpo-36142: Remove _PyMain structure by vstinner · Pull Request #12120 · python/cpython

Conversation

@vstinner

  • Move fields from _PyMain to _PyCoreConfig:

    • skip_first_line
    • run_command
    • run_module
    • run_filename
  • Replace _PyMain.stdin_is_interactive with a new
    stdin_is_interactive(config) function

  • Rename _PyMain to _PyArgv. Add "const _PyArgv *args" field
    to _PyCmdline.

https://bugs.python.org/issue36142

* Move fields from _PyMain to _PyCoreConfig:

  * skip_first_line
  * run_command
  * run_module
  * run_filename

* Replace _PyMain.stdin_is_interactive with a new
  stdin_is_interactive(config) function
* Rename _PyMain to _PyArgv. Add "const _PyArgv *args" field
  to _PyCmdline.

Labels

2 participants

@vstinner @bedevere-bot