can't see timer in emacs action

Larry Bates lbates at syscononline.com
Wed May 25 09:48:42 EDT 2005


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

ajikoe at gmail.com wrote:
> 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
> 



More information about the Python-list mailing list