]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-135801: Add the module parameter to compile() etc (GH-139652)
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 13 Nov 2025 11:21:32 +0000 (13:21 +0200)
committerGitHub <noreply@github.com>
Thu, 13 Nov 2025 11:21:32 +0000 (13:21 +0200)
commitd8e6bdc0d083f4e76ac49574544555ad91257592
tree28add209953f7d2454cf0ebc262812922b0672d2
parent63548b36998e7f7cd5c7c28b53b348a93f836737
gh-135801: Add the module parameter to compile() etc (GH-139652)

Many functions related to compiling or parsing Python code, such as
compile(), ast.parse(), symtable.symtable(),
and importlib.abc.InspectLoader.source_to_code() now allow to pass
the module name used when filtering syntax warnings.
47 files changed:
Doc/library/ast.rst
Doc/library/functions.rst
Doc/library/importlib.rst
Doc/library/symtable.rst
Doc/whatsnew/3.15.rst
Include/internal/pycore_compile.h
Include/internal/pycore_parser.h
Include/internal/pycore_pyerrors.h
Include/internal/pycore_pythonrun.h
Include/internal/pycore_symtable.h
Lib/ast.py
Lib/importlib/_bootstrap_external.py
Lib/importlib/abc.py
Lib/modulefinder.py
Lib/profiling/sampling/_sync_coordinator.py
Lib/profiling/tracing/__init__.py
Lib/runpy.py
Lib/symtable.py
Lib/test/test_ast/test_ast.py
Lib/test/test_builtin.py
Lib/test/test_cmd_line_script.py
Lib/test/test_compile.py
Lib/test/test_import/__init__.py
Lib/test/test_runpy.py
Lib/test/test_symtable.py
Lib/test/test_zipimport_support.py
Lib/zipimport.py
Misc/NEWS.d/next/Core_and_Builtins/2025-10-06-14-19-47.gh-issue-135801.OhxEZS.rst [new file with mode: 0644]
Modules/clinic/symtablemodule.c.h
Modules/symtablemodule.c
Parser/lexer/state.c
Parser/lexer/state.h
Parser/peg_api.c
Parser/pegen.c
Parser/pegen.h
Parser/string_parser.c
Parser/tokenizer/helpers.c
Programs/_freeze_module.py
Programs/freeze_test_frozenmain.py
Python/ast_preprocess.c
Python/bltinmodule.c
Python/clinic/bltinmodule.c.h
Python/compile.c
Python/errors.c
Python/pythonrun.c
Python/symtable.c
Tools/peg_generator/peg_extension/peg_extension.c