[issue41655] new Node may not visited in lib2to3.refactor.RefactoringTool.traverse_by

Chrome report at bugs.python.org
Fri Aug 28 09:33:20 EDT 2020


Chrome <expo.tao at gmail.com> added the comment:

`lib2to3.refactor.RefactoringTool.traverse_by` do a pre-order or post-order traverse algorithm, and apply every candidate fixer to each node when traverse the tree. when a prior fixer add a new node that contains children, these children won't be visited by posterior fixers.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41655>
_______________________________________


More information about the Python-bugs-list mailing list