Python 3000 idea: reversing the order of chained assignments

Steve Holden steve at holdenweb.com
Thu Mar 22 16:21:04 CET 2007


Duncan Booth wrote:
> Steve Holden <steve at holdenweb.com> wrote:
> 
>>> As a matter of interest do PyLint or PyChecker check for this situation 
>>> (chained assignment where the target of an assignment is also a 
>>> subexpression of a later assignment)?
>>>
>> Where's the published syntax for chained assignment?
> 
> http://docs.python.org/ref/assignment.html
> 
> More specifically, since you seem to have missed it, it's the '+' in the 
> line:
> 
> assignment_stmt  	::=  	(target_list "=")+ expression_list
> 
> And then the clear statement "assigns the single resulting object to each 
> of the target lists, from left to right".

Got it, thanks. See my further remarks in my reply to your last.

regards
  Steve
-- 
Steve Holden       +44 150 684 7255  +1 800 494 3119
Holden Web LLC/Ltd          http://www.holdenweb.com
Skype: holdenweb     http://del.icio.us/steve.holden
Recent Ramblings       http://holdenweb.blogspot.com




More information about the Python-list mailing list