Allow ast.NodeVisitor's generic_visit to return list of all returned values of calls to visit_
#128127
Labels
pending
The issue will be closed if no feedback is provided
stdlib
Python modules in the Lib dir
type-feature
A feature request or enhancement
Feature or enhancement
Proposal:
Currently ast.NodeVisitor iterates through all the nodes in tree calls the defined
visit_
methods but returns None.Proposal:
NodeVisitor's generic_visit should not return None when it has visited all the nodes, It will be more appropriate for it to return List of all return values of
visit_
calls.Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Linked PRs
visit_
#128128The text was updated successfully, but these errors were encountered: