bpo-42609: Check recursion depth in the AST validator and optimizer (GH-23744)

5 files changed