Re: [Tutor] comparing lists, __lt__ and __gt__

2007-07-30 Thread Tiger12506
> That having been saisd their is another use for >> which is to append > output to a file, as in: > > print 'hello world' >> myfile > > sends the string to myfile instead of to stdout. (Although I couldn't > get this to > work when I tried it!) > > Alan G. >From Dive Into Python Section 10.2

Re: [Tutor] comparing lists, __lt__ and __gt__

2007-07-28 Thread Alan Gauld
nstead of to stdout. (Although I couldn't get this to work when I tried it!) Alan G. - Original Message From: Alan Gauld <[EMAIL PROTECTED]> To: tutor@python.org Sent: Saturday, July 28, 2007 5:03:05 PM Subject: Re: [Tutor] comparing lists, __lt__ and __gt__ "Sara J

Re: [Tutor] comparing lists, __lt__ and __gt__

2007-07-28 Thread Sara Johnson
Original Message From: Alan Gauld <[EMAIL PROTECTED]> To: tutor@python.org 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 '

Re: [Tutor] comparing lists, __lt__ and __gt__

2007-07-28 Thread Alan Gauld
"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 th

Re: [Tutor] comparing lists, __lt__ and __gt__

2007-07-28 Thread Sara Johnson
First off, Kent, thanks for posting that! I know it's in the Python library but it does help to have a bookmark for things I know I'll need pretty soon. Second... What if there is a '<<' or '>>'? Does that just mean the same thing (maybe a little over emphasized.. ;) I thought I saw this w

Re: [Tutor] comparing lists, __lt__ and __gt__

2007-07-25 Thread Kent Johnson
Andrew Purdea wrote: > Hello! > I can see that lists have implemented these methods in jython.. > But i can not find any documentation on this. It looks like python > compares each element, and and when it finds a difference, it returns. > Where can i find documenation on this? Will this be

Re: [Tutor] comparing lists, __lt__ and __gt__

2007-07-25 Thread Bob Gailer
Andrew Purdea wrote: > Hello! > I can see that lists have implemented these methods in jython.. > But i can not find any documentation on this. It looks like python > compares each element, and and when it finds a difference, it returns. > Where can i find documenation on this? In python 2.

[Tutor] comparing lists, __lt__ and __gt__

2007-07-25 Thread Andrew Purdea
Hello! I can see that lists have implemented these methods in jython.. But i can not find any documentation on this. It looks like python compares each element, and and when it finds a difference, it returns. Where can i find documenation on this? Will this behaviour remain in python for futur