[Tutor] Readlines

Neil Schemenauer nas-pytut@python.ca
Sun Jun 22 10:53:13 2003


Adam Vardy wrote:
> Now I'm trying Read(). I have a couple observations, and wonder what
> you folks think. Take the code below. I notice that Read() is
> apparently incredibly slow! Text appears on screen, cursor slowly
> gliding across. Which surprises as it is only reading a byte at a
> time. On a Gigahertz machine.

Are you using Windows?  As I recall, the display for command shells is
really slow.  You could try redirecting the output to a file and see if
things go faster.

  Neil