[issue46719] Call not visited in ast.NodeTransformer

2022-02-11 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: > It looks like calls in function arguments are ignored. Please share a small, self-contained reproducer. >From what I can assume by this message, the problem is that you are not >calling self.generic_visit(node) on the first call you are handling. If you

[issue46719] Call not visited in ast.NodeTransformer

2022-02-11 Thread David Castells-Rufas
New submission from David Castells-Rufas : If I create a class derived from ast.NodeTransformer and implement the visit_Call. When run on the below code, the visit_Call function is only called once (for the print function, and not for ord). It looks like calls in function arguments are