Message216525
I took another look and tried the patch and discovered that my comments are partly wrong because restart_shell is called before runcode when runcode is use to run a file. (I am not sure how it is called otherwise with self.tkconsole.executing == True.) This happens in ScriptBinding.ScriptBinding._run_module_event and that is where filename could be added to the restart_shell call.
The rest of my comment was about not printing fake prompts that the user can never respond to. In particular, Run F5 is like python -i, and for that the console interpreter does not print a prompt until it is done running the script and ready for user input.
C:\Programs\Python34>python -i tem.py
start
stop
>>> |
|
Date |
User |
Action |
Args |
2014-04-16 17:57:43 | terry.reedy | set | recipients:
+ terry.reedy, Adnan.Umer |
2014-04-16 17:57:43 | terry.reedy | set | messageid: <1397671063.15.0.546522115122.issue21192@psf.upfronthosting.co.za> |
2014-04-16 17:57:43 | terry.reedy | link | issue21192 messages |
2014-04-16 17:57:42 | terry.reedy | create | |
|