From: Calvelo Daniel Date: 2000-08-02T08:34:31+00:00 Subject: [ruby-talk:04309] Re: basic ops in some languages faatdilac@my-deja.com wrote: : Why the following works in Perl: : : $a = ($b = 2) * 3; : : and Ruby: : : a = (b = 2) * 3 : : but not in Python: : : a = (b = 2) * 3 In Python '=' is an assignment *statement*, not an operator. The fact that you can chain assignments is a feature of the statement, not a side effect of the '=' operator having a return value (that is the case of Perl and Ruby.) HTH, DCA. -- Daniel Calvelo Aros calvelo@lifl.fr