[Tutor] comparing lists, __lt__ and __gt__
Alan Gauld
alan.gauld at btinternet.com
Sun Jul 29 00:03:05 CEST 2007
"Sara Johnson" <sarliz73 at yahoo.com> 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
More information about the Tutor
mailing list