[Python-Dev] why do we allow this syntax?

Donald Stufft donald.stufft at gmail.com
Fri Feb 8 16:41:52 CET 2013


On Friday, February 8, 2013 at 10:39 AM, Chris Withers wrote:
> Hi All,
> 
> Just had a bit of an embarrassing incident in some code where I did:
> 
> sometotal =+ somevalue
I'm guessing this gets parsed as sometotal = +somevalue 
> 
> I'm curious why this syntax is allowed? I'm sure there are good reasons, 
> but thought I'd ask...
> 
> Chris
> 
> -- 
> Simplistix - Content Management, Batch Processing & Python Consulting
> - http://www.simplistix.co.uk
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org (mailto:Python-Dev at python.org)
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: http://mail.python.org/mailman/options/python-dev/donald.stufft%40gmail.com
> 
> 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20130208/cdac6f25/attachment.html>


More information about the Python-Dev mailing list