On Mon, Nov 16, 2009 at 6:23 AM, Xavier Ho <cont...@xavierho.com> wrote:
<snip>
>>>> '3' in l and 'no3' in l
> True
>
> AND operator has a higher precedence, so you don't need any brackets here, I
> think. But anyway, you have to use it like that. So that's something you'll
> have to fix first.

Er, you mean lower precedence. Higher precedence means it would bind
tighter, thus the expression would mean:
'3' in (l and 'no3') in l
which is certainly incorrect.

Cheers,
Chris
--
http://blog.rebertia.com
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to