[New-bugs-announce] [issue46719] Call not visited in ast.NodeTransformer
David Castells-Rufas
report at bugs.python.org
Fri Feb 11 08:29:14 EST 2022
New submission from David Castells-Rufas <david.castells at uab.cat>:
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 ignored.
def main():
print(ord('A'))
On the other hand, on the following code it correctly visits both functions (print and ord).
def main():
c = org('A')
print(c)
----------
components: Library (Lib)
messages: 413069
nosy: davidcastells
priority: normal
severity: normal
status: open
title: Call not visited in ast.NodeTransformer
type: behavior
versions: Python 3.10, Python 3.7, Python 3.8, Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46719>
_______________________________________
More information about the New-bugs-announce
mailing list