> 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
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
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 '
"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
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
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
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.
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