[Python-Dev] why do we allow this syntax? (original) (raw)

Benjamin Peterson benjamin at python.org
Fri Feb 8 16:42:39 CET 2013


2013/2/8 Chris Withers <chris at simplistix.co.uk>:

Hi All,

Just had a bit of an embarrassing incident in some code where I did: sometotal =+ somevalue

That's just a strange way of expressing

sometotal = +somevalue

I'm curious why this syntax is allowed? I'm sure there are good reasons, but thought I'd ask...

-- Regards, Benjamin



More information about the Python-Dev mailing list