George Wahid wrote:
I downloaded python 3.0.1 today and started experimenting with the new
print statement.
print is a function, not a statement.
--
Bob Gailer
Chapel Hill NC
919-636-4239
___
Tutor maillist - Tutor@python.org
http://mail.python.or
> You aren't doing anything wrong. The print function writes to
> sys.stdout.
> sys.stdout is a buffered file which means it doesn''t write to its
> output
> immediately but waits until enough data is in its buffer to make it
> worthwhile - or until explicitly told to flush itself.
>
> Because you
"George Wahid" wrote
Thanks for the answers. I didn't have this problem with python 2.5.
I
know I can use stdout instead, but I want to know what I'm doing
wrong.
You aren't doing anything wrong. The print function writes to
sys.stdout.
sys.stdout is a buffered file which means it doesn''t
Thanks for the answers. I didn't have this problem with python 2.5. I
know I can use stdout instead, but I want to know what I'm doing
wrong.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
-Original Message-
>From: spir
>Sent: Feb 28, 2009 2:16 AM
>To: tutor@python.org
>Subject: Re: [Tutor] new print statement + time module
>
>Le Sat, 28 Feb 2009 06:34:07 +0200,
>George Wahid s'exprima ainsi:
>
>> I downloaded python 3.0.1 today and
"spir" wrote in message
news:20090228081629.36a24...@o...
Le Sat, 28 Feb 2009 06:34:07 +0200,
George Wahid s'exprima ainsi:
I downloaded python 3.0.1 today and started experimenting with the new
print statement.
>>>import time
>>>for l in 'the answer':
...print(l,end='')
...time.sl
Le Sat, 28 Feb 2009 06:34:07 +0200,
George Wahid s'exprima ainsi:
> I downloaded python 3.0.1 today and started experimenting with the new
> print statement.
>
> >>>import time
> >>>for l in 'the answer':
> ...print(l,end='')
> ...time.sleep(0.1)
>
> the code is supposed to print "the a
I downloaded python 3.0.1 today and started experimenting with the new
print statement.
>>>import time
>>>for l in 'the answer':
...print(l,end='')
...time.sleep(0.1)
the code is supposed to print "the answer" with a 0.1 second long
pause between the letters. instead, it waits for 1 secon