[Python-Dev] why do we allow this syntax? (original) (raw)
Serhiy Storchaka storchaka at gmail.com
Fri Feb 8 17:03:52 CET 2013
- Previous message: [Python-Dev] why do we allow this syntax?
- Next message: [Python-Dev] os.path.join failure mode
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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'
]
- Previous message: [Python-Dev] why do we allow this syntax?
- Next message: [Python-Dev] os.path.join failure mode
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]