summaryrefslogtreecommitdiffstats
path: root/Python/ast_preprocess.c
Commit message (Collapse)AuthorAgeFilesLines
* gh-135801: Add the module parameter to compile() etc (GH-139652)Serhiy Storchaka2025-11-131-2/+6
| | | | | | | 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.
* gh-131927: Do not emit PEP 765 warnings in ast.parse() (GH-139642)Serhiy Storchaka2025-10-301-3/+5
| | | | | | ast.parse() no longer emits syntax warnings for return/break/continue in finally (see PEP-765) -- they are only emitted during compilation.
* gh-137308: Replace a single docstring with `pass` in `-OO` mode (#137318)sobolevn2025-08-021-1/+26
| | | | This is required so we would never have empty node bodies. Refs #130087
* gh-126835: Rename `ast_opt.c` to `ast_preprocess.c` and related stuff after ↵Yan Yanchii2025-05-041-0/+963
moving const folding to the peephole optimizier (#131830)