On 1/17/2013 4:44 PM, Steve Spicklemire wrote:

On Jan 17, 2013, at 8:22 AM, Terry Reedy <[email protected]> wrote:

If a file, such Steve's, is run like so, from the command line with -i, does 
atexit processing automatically happen before switching to interactive mode, or 
not? Perhaps one of you can test.

It appears to happen after you exit from interactive mode, at least on python 
2.6,2.7,3.2 and 3.3.

I'll have to wait to get to a computer to absorb the rest. I can't read all 
that on my phone!

This suggests to me that IDLE should run atexit stuff in the user process before is exits and before it RESTARTs. In the latter case, any atexit output will appear in the shell before the RESTART line.

--
Terry Jan Reedy

_______________________________________________
IDLE-dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/idle-dev

Reply via email to