Author terry.reedy
Recipients Adnan.Umer, terry.reedy
Date 2014-04-16.17:57:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1397671063.15.0.546522115122.issue21192@psf.upfronthosting.co.za>
In-reply-to
Content
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
>>>
History
Date User Action Args
2014-04-16 17:57:43terry.reedysetrecipients: + terry.reedy, Adnan.Umer
2014-04-16 17:57:43terry.reedysetmessageid: <1397671063.15.0.546522115122.issue21192@psf.upfronthosting.co.za>
2014-04-16 17:57:43terry.reedylinkissue21192 messages
2014-04-16 17:57:42terry.reedycreate