On Sat, Nov 14, 2015 at 6:45 AM, Ian Kelly <ian.g.ke...@gmail.com> wrote:
> This sets RegisterAX to 2. Specifically, positive 2. If you want to
> *add* 2, you probably meant to write:
>
>     RegisterAX += 2
>
> This also points out a good reason for using spaces around operators,
> as "RegisterAX =+ 2" would have caused a SyntaxError and been more
> easily detectable.

Err, no. Even with spaces, it works just fine, because unary plus is
allowed to be separated from its operand with spaces:

>>> x=1
>>> x =+ 2
>>> x = + 3
>>> x
3

However, this is a reasonable call for the abolition of unary plus...

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to