[ python-Bugs-1479785 ] Quitter object masked

SourceForge.net noreply at sourceforge.net
Mon Feb 5 18:40:50 CET 2007


Bugs item #1479785, was opened at 2006-05-01 11:01
Message generated for change (Comment added) made by kbk
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1479785&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: IDLE
Group: Python 2.5
>Status: Closed
Resolution: Fixed
Priority: 5
Private: No
Submitted By: Jim Jewett (jimjjewett)
Assigned to: Kurt B. Kaiser (kbk)
Summary: Quitter object masked

Initial Comment:
2.5 introduces a Quitter object (defined in site.py) 
to make the quit/exit message more friendly.

Lines 480-482 of PyShell.py override this, so that 
users of Idle never see the improved feature.

Unfortunately, simply removing those lines isn't quite 
enough to solve the problem, as IDLE catches 
SystemExit exceptions.  Getting around that, I didn't 
have time to track down yet.




----------------------------------------------------------------------

>Comment By: Kurt B. Kaiser (kbk)
Date: 2007-02-05 12:40

Message:
Logged In: YES 
user_id=149084
Originator: NO

I don't see how to easily eliminate the dialog.  When quit() runs,
Quitter.__call__() closes IDLE's sys.stdin, and (since __call__() is still
executing) that's trapped by PyShell.py using the logic which requires the
user to confirm exit if he clicks on the Shell's close widget
(WM_DELETE_WINDOW) while his code is running.  If File.close() had a
parameter, we might be able to do something about this.

The extra confirmation probably doesn't hurt.  Aficionados will use Ctrl-D
etc. anyway.

----------------------------------------------------------------------

Comment By: Ronald Oussoren (ronaldoussoren)
Date: 2006-08-28 12:43

Message:
Logged In: YES 
user_id=580910

When I type quit() in the Python Shell window I get a dialog that says:

> The program is still running!
> Do you want to kill it?

(Python 2.5c1)

----------------------------------------------------------------------

Comment By: Kurt B. Kaiser (kbk)
Date: 2006-08-16 01:03

Message:
Logged In: YES 
user_id=149084

Rev 51306: Patch #1540892

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1479785&group_id=5470


More information about the Python-bugs-list mailing list