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.

Author steven.daprano
Recipients Marco Sulla, steven.daprano
Date 2020-02-01.15:34:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <20200201153409.GG6362@ando.pearwood.info>
In-reply-to <1580569003.41.0.582109148146.issue39516@roundup.psfhosted.org>
Content
Marco, this is no more of a defect than `x*-y` or `a&~b`. It is a binary 
operator followed by an unary operator, just like `x--y`, `x/-y`, 
`x+-y`, `x**-y` etc. Python has at least three unary operators and at 
least 17 binary operators so in total there are 51 possible legal 
combinations of a binary operator followed by an unary operator.

`++` isn't special, it's not unique, or a defect, or a bug.

>     1++
>       ^
> SyntaxError: invalid syntax

As a programmer with more than 10 years experience, you should know that 
this example is a syntax error because you are missing the right hand 
operand, not because `++` has no meaning. You would get precisely the 
same syntax error with `2*` or `2==`.
History
Date User Action Args
2020-02-01 15:34:13steven.dapranosetrecipients: + steven.daprano, Marco Sulla
2020-02-01 15:34:13steven.dapranolinkissue39516 messages
2020-02-01 15:34:13steven.dapranocreate