[issue31331] IDLE: Move prompts with input.

2017-09-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: In my example the screen before the output had >>> go() >>> a = 12,| where '|' is the blinking input cursor. The '\n' terminated print output is inserted *after* '>>> ' but before the imcomplete statement. When the statement I want it *before*

[issue31331] IDLE: Move prompts with input.

2017-09-04 Thread Louie Lu
Louie Lu added the comment: Or the output should be: >>> from threading import Timer >>> Timer(0.1, lambda: print('hello'), ()).start() >>> 'hello' >>> -- ___ Python tracker

[issue31331] IDLE: Move prompts with input.

2017-09-04 Thread Louie Lu
Louie Lu added the comment: minimum reproduce: >>> from threading import Timer >>> Timer(0.1, lambda: print('hello'), ()).start() >>> 'hello' a = ( 12, --- And the expect output should be something like: >>> from threading import Timer >>> Timer(0.1, lambda:

[issue31331] IDLE: Move prompts with input.

2017-09-02 Thread Terry J. Reedy
New submission from Terry J. Reedy: 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