This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients terry.reedy
Date 2017-09-02.23:52:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1504396342.39.0.90441409742.issue31331@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-09-02 23:52:22terry.reedysetrecipients: + terry.reedy
2017-09-02 23:52:22terry.reedysetmessageid: <1504396342.39.0.90441409742.issue31331@psf.upfronthosting.co.za>
2017-09-02 23:52:22terry.reedylinkissue31331 messages
2017-09-02 23:52:21terry.reedycreate