Re: [Tutor] new print statement + time module

2009-02-28 Thread bob gailer
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

Re: [Tutor] new print statement + time module

2009-02-28 Thread George Wahid
> 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

Re: [Tutor] new print statement + time module

2009-02-28 Thread Alan Gauld
"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

Re: [Tutor] new print statement + time module

2009-02-28 Thread George Wahid
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

Re: [Tutor] new print statement + time module

2009-02-28 Thread Ken Oliver
-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

Re: [Tutor] new print statement + time module

2009-02-27 Thread Mark Tolonen
"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

Re: [Tutor] new print statement + time module

2009-02-27 Thread spir
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

[Tutor] new print statement + time module

2009-02-27 Thread George Wahid
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