Roy Smith writes:

> On Thursday, January 30, 2014 9:56:19 AM UTC-5, Jussi Piitulainen wrote:
> 
> > There's nothing to parenthesize in x <= y < z = w
> 
> Hmm....
> 
> >>> x <= y < z = w
>   File "<stdin>", line 1
> SyntaxError: can't assign to comparison
> 
> I don't think any number of parentheses will help that :-)

Er, sorry about that. Here:

>>> x <= y < z == w
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'x' is not defined

Much better :)
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to