[issue39999] Fix some issues with AST node classes

2020-03-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue39999] Fix some issues with AST node classes

2020-03-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset bace59d8b8e38f5c779ff6296ebdc0527f6db14a by Serhiy Storchaka in branch 'master': bpo-3: Improve compatibility of the ast module. (GH-19056) https://github.com/python/cpython/commit/bace59d8b8e38f5c779ff6296ebdc0527f6db14a -- ___

[issue39999] Fix some issues with AST node classes

2020-03-18 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: I see, thanks for the explanation. -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue39999] Fix some issues with AST node classes

2020-03-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, and this what PR 19056 does. It is not difficult, and if we can avoid a breakage, why not do this? We have kept all other deprecated classes, like Num and ExtSlice. In 3.10 we can add runtime warnings, and remove them in some future releases. We alre

[issue39999] Fix some issues with AST node classes

2020-03-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +18408 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19056 ___ Python tracker ___

[issue39999] Fix some issues with AST node classes

2020-03-18 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: > 1. Re-add removed classes Suite, Param, AugLoad and AugStore. They are not > used in Python 3, are not created by the parser and are not accepted by the > compiler. Param was used in 2.7, other classes were not used longer time. But > some third-party pro

[issue39999] Fix some issues with AST node classes

2020-03-18 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The proposed PR fixes some issues related to recent changes in the AST node classes. 1. Re-add removed classes Suite, Param, AugLoad and AugStore. They are not used in Python 3, are not created by the parser and are not accepted by the compiler. Param w