A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2018-April/152747.html below:

[Python-Dev] PEP 572: Assignment Expressions

[Python-Dev] PEP 572: Assignment Expressions [Python-Dev] PEP 572: Assignment ExpressionsMRAB python at mrabarnett.plus.com
Tue Apr 17 19:51:46 EDT 2018
On 2018-04-17 22:53, Terry Reedy wrote:
> On 4/17/2018 3:46 AM, Chris Angelico wrote:
[snip]
> 
>> Augmented assignment is not supported in expression form::
>> 
>>      >>> x +:= 1
>>        File "<stdin>", line 1
>>          x +:= 1
>>              ^
>>      SyntaxError: invalid syntax
> 
> I would have expected :+=, but agree with the omission.
> 
x = x op 1 is abbreviated to x op= 1, so x := x op 1 would be 
abbreviated to x op:= 1. That's what's used in the Icon language.

[snip]
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4