[Python-Dev] why do we allow this syntax?
Benjamin Peterson
benjamin at python.org
Fri Feb 8 17:10:21 CET 2013
More information about the Python-Dev mailing list
Fri Feb 8 17:10:21 CET 2013
- Previous message: [Python-Dev] why do we allow this syntax?
- Next message: [Python-Dev] why do we allow this syntax?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
2013/2/8 Chris Withers <chris at simplistix.co.uk>: > On 08/02/2013 15:42, Benjamin Peterson wrote: >> >> 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 > > > Indeed, but why should this be possible? When could it do something useful? > :-) + is a normal overridable operator. -- Regards, Benjamin
- Previous message: [Python-Dev] why do we allow this syntax?
- Next message: [Python-Dev] why do we allow this syntax?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list