Hmm... An idea: if a,b==c,d:
Michael Hudson
mwh at python.net
Tue Nov 19 08:09:09 EST 2002
"Jan D. Wegner" <Jan.Wegner at zuken.de> writes:
> Hi,
>
> using py 2.2.2 on winNT
>
> l = (1, 2, 3, 4)
> ans = l in [l] # is tuple l in list l ?
> ans
> 1 # allways true
> ans < 2
> 1 # its a boolean, though ...
>
> am I right?
>
> ( or is ther a chance to execute 'if l in ( [l] < 2 ):' )
Nope, it's much more surprising than that...
Cheers,
M.
--
For their next act, they'll no doubt be buying a firewall
running under NT, which makes about as much sense as
building a prison out of meringue. -- -:Tanuki:-
-- http://home.xnet.com/~raven/Sysadmin/ASR.Quotes.html
More information about the Python-list
mailing list