This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: support Assignment Operators
Type: enhancement Stage: resolved
Components: Interpreter Core Versions: Python 3.9
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: mohamad khosravi, xtreak, zach.ware
Priority: normal Keywords:

Created on 2019-11-26 16:23 by mohamad khosravi, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (3)
msg357507 - (view) Author: mohamad khosravi (mohamad khosravi) Date: 2019-11-26 16:23
support "Assignment Operators":

x = "ME"
while len(x:*=2) < 64:print("value doubled!")
msg357511 - (view) Author: Karthikeyan Singaravelan (xtreak) * (Python committer) Date: 2019-11-26 16:54
This needs to be discussed on python-ideas mailing list. Inplace operation for walrus operator like :*= feels difficulty to read than (x := x * 2) and would require changes to grammar.
msg357518 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2019-11-26 17:23
Agreed with Karthikeyan.  This is a PEP-level change, meaning it will first need to find some approval on python-ideas, a PEP will need to be written and eventually approved before an issue should be opened to implement the change; thus I'm closing this issue as "rejected".  I will warn you that it's very unlikely that this will make it through that process, but you are welcome to try :)
History
Date User Action Args
2022-04-11 14:59:23adminsetgithub: 83100
2019-11-26 17:23:12zach.waresetstatus: open -> closed

type: enhancement
components: + Interpreter Core

nosy: + zach.ware
messages: + msg357518
resolution: rejected
stage: resolved
2019-11-26 16:54:02xtreaksetnosy: + xtreak
messages: + msg357511
2019-11-26 16:23:02mohamad khosravicreate