newbie idiom question
greg.ewing at compaq.com
Tue Jun 22 22:41:54 CEST 1999
Jeff Epler wrote:
> Is this a wart on python, that "=" means three different things depending
> if you have a name, a [item] or a [slice:] on the LHS?
Syntactically, '=' doesn't stand on its own - you
have to read it in conjunction with the LHS.
In other words, there isn't an '=' operator, there
are 'x=', 'x.y=', 'x[y]=' and 'x[y:z]=' operators.
It's not a wart, it's a feature...
More information about the Python-list