[Patches] [ python-Patches-1228112 ] code.py use sys.excepthook to display exceptions
SourceForge.net
noreply at sourceforge.net
Tue Jun 28 10:08:53 CEST 2005
Patches item #1228112, was opened at 2005-06-27 10:33
Message generated for change (Comment added) made by mwh
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1228112&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: Library (Lib)
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: Miki Tebeka (tebeka)
Assigned to: Nobody/Anonymous (nobody)
Summary: code.py use sys.excepthook to display exceptions
Initial Comment:
This patch makes code.py InteractiveInterpreter use
sys.excepthook to display exceptions.
This way if a user changes sys.excepthook it will be
used by the InteractiveInterpreter.
----------------------------------------------------------------------
>Comment By: Michael Hudson (mwh)
Date: 2005-06-28 09:08
Message:
Logged In: YES
user_id=6656
> Not sure I understand the comment about self.write.
> Overiding sys.excepthook in IDLE does *not* work.
> (sys.displayhook does though).
Yeah, sure, your patch changes that, but I think that with your patch idle
will need to install its own sys.excepthook or exception messages will end
up on the real stderr.
----------------------------------------------------------------------
Comment By: Miki Tebeka (tebeka)
Date: 2005-06-28 07:44
Message:
Logged In: YES
user_id=358087
OK. Changed syntaxerror as well (see attached patch).
Not sure I understand the comment about self.write.
Overiding sys.excepthook in IDLE does *not* work.
(sys.displayhook does though).
----------------------------------------------------------------------
Comment By: Michael Hudson (mwh)
Date: 2005-06-27 11:57
Message:
Logged In: YES
user_id=6656
Seems like a good idea to me.
The only quibble around the area of self.write -- it might break code that
overrides that (IDLE?). Also, shouldn't showsyntaxerror be changed too?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1228112&group_id=5470
More information about the Patches
mailing list