[Tutor] multiple assignment on one line

Lie Ryan lie.1296 at gmail.com
Sun Nov 22 10:34:58 CET 2009


Alan Gauld wrote:
> 
> "Shashwat Anand" <anand.shashwat at gmail.com> wrote
> 
>> Can we pack these two statements in one line ?
>> a += k
>> b += k
> 
>> of course a,b +=k will not work but is there any such option available?
> 
> Not that I'm aware. And when I tried it just to see what happens it 
> killed IDLE completely - Window disappeared  and everything!
> 

FYI, that's #7050: http://bugs.python.org/issue7050



More information about the Tutor mailing list