]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40334: Rename PyConfig.use_peg to _use_peg_parser (GH-19670)
authorVictor Stinner <vstinner@python.org>
Thu, 23 Apr 2020 01:03:24 +0000 (03:03 +0200)
committerGitHub <noreply@github.com>
Thu, 23 Apr 2020 01:03:24 +0000 (03:03 +0200)
commit1def7754b7a41fe57efafaf5eff24cfa15353444
tree8fd9f9ddeaf9a66f92d1916b86901573afce0ccb
parenta25f3c4c8f7d4878918ce1d3d67db40ae255ccc6
bpo-40334: Rename PyConfig.use_peg to _use_peg_parser (GH-19670)

* Rename PyConfig.use_peg to _use_peg_parser
* Document PyConfig._use_peg_parser and mark it a deprecated
* Mark -X oldparser option and PYTHONOLDPARSER env var as deprecated
  in the documentation.
* Add use_old_parser() and skip_if_new_parser() to test.support
* Remove sys.flags.use_peg: use_old_parser() uses
  _testinternalcapi.get_configs() instead.
* Enhance test_embed tests
* subprocess._args_from_interpreter_flags() copies -X oldparser
26 files changed:
Doc/c-api/init_config.rst
Doc/using/cmdline.rst
Include/cpython/initconfig.h
Lib/subprocess.py
Lib/test/support/__init__.py
Lib/test/test_codeop.py
Lib/test/test_compile.py
Lib/test/test_embed.py
Lib/test/test_eof.py
Lib/test/test_exceptions.py
Lib/test/test_flufl.py
Lib/test/test_fstring.py
Lib/test/test_parser.py
Lib/test/test_peg_parser.py
Lib/test/test_positional_only_arg.py
Lib/test/test_string_literals.py
Lib/test/test_syntax.py
Lib/test/test_sys.py
Lib/test/test_traceback.py
Lib/test/test_type_comments.py
Lib/test/test_unparse.py
Programs/_testembed.c
Python/bltinmodule.c
Python/initconfig.c
Python/pythonrun.c
Python/sysmodule.c