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

Serhiy Storchaka storchaka at gmail.com
Fri Feb 8 17:03:52 CET 2013


On 08.02.13 17:39, Chris Withers wrote:

Just had a bit of an embarrassing incident in some code where I did:

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

And why this syntax is allowed?

 pi = 3,14

And this:

 fruits = [
     'apple',
     'pear',
     'banana'
     'ananas',
     'mango'
 ]


More information about the Python-Dev mailing list