]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-36142: Remove _PyMain structure (GH-12120)
authorVictor Stinner <vstinner@redhat.com>
Fri, 1 Mar 2019 12:10:14 +0000 (13:10 +0100)
committerGitHub <noreply@github.com>
Fri, 1 Mar 2019 12:10:14 +0000 (13:10 +0100)
commit62be763348d16ba90f96667aa0240503261393f0
tree10067e60b25d4187d417fd8ea24deb3b90740a12
parentdfe884759d1f4441c889695f8985bc9feb9f37eb
bpo-36142: Remove _PyMain structure (GH-12120)

* 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.
Include/cpython/coreconfig.h
Lib/test/test_embed.py
Modules/main.c
Python/coreconfig.c