can't see timer in emacs action

A

ajikoe

Hello,

I tried this code in emacs.
for i in range(3):
time.sleep(1)
print i

It shows the result but total result not second per second.

Any one experiance this problem

pujo
 
L

Larry Bates

I don't know about emacs, but this works in PythoWin IDE.

import time
import sys
for i in range(20):
sys.stdout.write(str(i)+' ')
sys.stdout.flush()
time.sleep(1)

-Larry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,240
Messages
2,571,205
Members
47,844
Latest member
ChanceGris

Latest Threads

Top