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

2020-08-28 Thread Chrome
Change by Chrome : -- keywords: +patch pull_requests: +21097 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21988 ___ Python tracker ___ _

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

2020-08-28 Thread Chrome
Chrome 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 posterio

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

2020-08-28 Thread Chrome
New submission from Chrome : `lib2to3.refactor.RefactoringTool.traverse_by` do a pre-order or post-order, 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. --