[issue39988] Remove AugLoad and AugStore expression context from AST

2020-03-20 Thread Jack O'Connor
Jack O'Connor added the comment: Ah never mind, it looks like that's covered by https://bugs.python.org/issue3 -- ___ Python tracker ___ _

[issue39988] Remove AugLoad and AugStore expression context from AST

2020-03-20 Thread Jack O'Connor
Jack O'Connor added the comment: This change may have broken pyflakes on nightly Python. Is that expected or problematic? Error message: "pyflakes" failed during execution due to "module 'ast' has no attribute 'AugLoad'" Seen at: https://travis-ci.org/github/buildinspace/peru/jobs/6650

[issue39988] Remove AugLoad and AugStore expression context from AST

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

[issue39988] Remove AugLoad and AugStore expression context from AST

2020-03-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 6b97598fb66a08d0f36e4d73bffea5c1b17740d4 by Serhiy Storchaka in branch 'master': bpo-39988: Remove ast.AugLoad and ast.AugStore node classes. (GH-19038) https://github.com/python/cpython/commit/6b97598fb66a08d0f36e4d73bffea5c1b17740d4 --

[issue39988] Remove AugLoad and AugStore expression context from AST

2020-03-17 Thread Ned Deily
Change by Ned Deily : -- Removed message: https://bugs.python.org/msg364424 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39988] Remove AugLoad and AugStore expression context from AST

2020-03-17 Thread sanjeev
sanjeev added the comment: Thank you for this question https://www.extam.com/ -- nosy: +sanjeev091 ___ Python tracker ___ ___ Pytho

[issue39988] Remove AugLoad and AugStore expression context from AST

2020-03-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is possible also to get rid of the ctx argument at all. The context may be determined by the parent nodes. But it is larger and breaking change, so I'll open a separate issue for it. -- ___ Python tracker

[issue39988] Remove AugLoad and AugStore expression context from AST

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

[issue39988] Remove AugLoad and AugStore expression context from AST

2020-03-17 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : AugLoad and AugStore are never exposed to the user. They are not generated by the parser and the compiler does not accept it. >>> from ast import * >>> tree = Module(body=[AugAssign(target=Name(id='x', ctx=AugStore()), >>> op=Add(), value=Constant(value=