[Python-Dev] PEP 572: Assignment Expressions
Eric Fahlgren
ericfahlgren at gmail.com
Tue Apr 17 12:15:55 EDT 2018
More information about the Python-Dev mailing list
Tue Apr 17 12:15:55 EDT 2018
- Previous message (by thread): [Python-Dev] PEP 572: Assignment Expressions
- Next message (by thread): [Python-Dev] PEP 572: Assignment Expressions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, Apr 17, 2018 at 2:23 AM, Chris Angelico <rosuav at gmail.com> wrote: > Augmented assignment is currently all of these: > > augassign: ('+=' | '-=' | '*=' | '@=' | '/=' | '%=' | '&=' | '|=' | '^=' | > '<<=' | '>>=' | '**=' | '//=') > > I'm actually not sure whether the augmented-assignment-expression > operators should be "+:=" or ":+=", but either way, it'd be another > thirteen tokens, some of which would be *four* character tokens. > Or simply rework the augmented assignment's semantics to become expression operators without any syntactic changes. Since there's no bug magnet arising in the usual context where '=' and '==' get confused: > if x += 1 < 2: -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20180417/0ed2cc54/attachment.html>
- Previous message (by thread): [Python-Dev] PEP 572: Assignment Expressions
- Next message (by thread): [Python-Dev] PEP 572: Assignment Expressions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list