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

--
components: 2to3 (2.x to 3.x conversion tool)
messages: 376035
nosy: chrome
priority: normal
severity: normal
status: open
title: new Node may not visited in lib2to3.refactor.RefactoringTool.traverse_by
type: behavior
versions: Python 3.10

___
Python tracker 
<https://bugs.python.org/issue41655>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 posterior fixers.

--

___
Python tracker 
<https://bugs.python.org/issue41655>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue41655>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue41655>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue41655>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com