On Thu, 12 Nov 2009 21:27:31 +0100, Bruno Desthuilliers wrote:

> Congratulations, you just reinvented one of the most infamous source of
> bugs in C, C++, Java, PHP, javascript and quite a few other languages.
> Believe it or not, but not allowing this in Python was a very deliberate
> design choice.

Oh, but those hundreds of thousands of man-hours lost to bugs caused by 
assignment-as-an-expression is nothing compared to the dozens of man-
minutes saved by having one fewer line of code!


*wink*



-- 
Steven
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to