[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 f

[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 visit

[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 <https://bugs.python.org/issu

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

2020-08-28 Thread Chrome
Change by Chrome : -- title: new Node may not visited in lib2to3.refactor.RefactoringTool.traverse_by -> New Node may not be visited in lib2to3.refactor.RefactoringTool.traverse_by ___ Python tracker <https://bugs.python.org/issu

[issue41659] PEG discrepancy on 'if {x} {a}: pass'

2020-08-28 Thread Chrome
Change by Chrome : -- versions: +Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue41659> ___ ___ Python-bugs-list m

[issue41659] PEG discrepancy on 'if {x} {a}: pass'

2020-08-28 Thread Chrome
Change by Chrome : -- versions: -Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue41659> ___ ___ Python-bug

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

2020-08-28 Thread Chrome
Change by Chrome : -- versions: +Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue41655> ___ ___ Pytho

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

2020-08-28 Thread Chrome
Chrome added the comment: you can run example.py to reproduce this bug. -- Added file: https://bugs.python.org/file49434/example.py ___ Python tracker <https://bugs.python.org/issue41