[New-bugs-announce] [issue39449] New Assignment operator

Arthur Fibich report at bugs.python.org
Fri Jan 24 18:13:50 EST 2020


New submission from Arthur Fibich <arthurfibich at gmail.com>:

It's just a personal thing, but I kind of miss the following possibility in Python (and likewise every other language I know):
Like 
a += 1 
is the same as
a = a + 1

I'd love to see
a .= b()
as an opportunity to express
a = a.b()

Possible usages are for example linked lists or other structures, where a class's attributes or methods are/return an object of the same type.

----------
components: Interpreter Core
messages: 360659
nosy: Arthur Fibich
priority: normal
severity: normal
status: open
title: New Assignment operator
type: enhancement
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39449>
_______________________________________


More information about the New-bugs-announce mailing list