Logic operators with "in" statement
contact at xavierho.com
Tue Nov 17 01:32:43 CET 2009
On Tue, Nov 17, 2009 at 12:46 AM, Chris Rebert <clp2 at rebertia.com> wrote:
> On Mon, Nov 16, 2009 at 6:23 AM, Xavier Ho <contact at xavierho.com> wrote:
> > 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
> > 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.
Thanks for the correction, Chris.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list