Thanks Alan. That said, any idea what it means in this context?
for key in skeys:
fracmiss=1.*numberMissing(z[key].values())/nsites #note decimal
multiplication, 1.*
outstring="%s has %4.1f%% missing" % (key,100*fracmiss)
if fracmiss >>0
----- Original Message ----
From: Alan Gauld <[EMAIL PROTECTED]>
To: [email protected]
Sent: Saturday, July 28, 2007 5:03:05 PM
Subject: Re: [Tutor] comparing lists, __lt__ and __gt__
"Sara Johnson" <[EMAIL PROTECTED]> wrote
> What if there is a '<<' or '>>'?
> Does that just mean the same thing (maybe a little over emphasized..
> ;)
The double chevron operator is for bit-shifting its not a camparison
operation.
So no operator override function exists.
> I thought I saw this when I was learning boolean expressions,
> but I don't recall.
Possibly, because its often used to manipulate bitpatterns in
conjunction with bitwise boolean comparisons (and/or/xor etc)
HTH,
--
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor
____________________________________________________________________________________
Be a better Heartthrob. Get better relationship answers from someone who knows.
Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545433_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor