Message301177
When this program (from thread by Steven D'Aprano) on python-list is run
import time
from threading import Timer
def do_work():
x = 2 + 2
print("It is", time.asctime(), "and 2+2 is", x)
def go():
Timer(10, do_work, ()).start() # schedule it in one minute
The response, if it occurs while one in entering a statement, 'pushes down' the entry in progress.
======================= RESTART: F:\Python\mypy\tem.py =======================
>>> go()
>>> It is Sat Sep 2 19:42:10 2017 and 2+2 is 4 #<== output
a = (
12, # <== 2nd line of entry in progress
The prompt should be pushed down too. |
|
| Date |
User |
Action |
Args |
| 2017-09-02 23:52:22 | terry.reedy | set | recipients:
+ terry.reedy |
| 2017-09-02 23:52:22 | terry.reedy | set | messageid: <1504396342.39.0.90441409742.issue31331@psf.upfronthosting.co.za> |
| 2017-09-02 23:52:22 | terry.reedy | link | issue31331 messages |
| 2017-09-02 23:52:21 | terry.reedy | create | |
|