Patches item #1228112, was opened at 2005-06-27 12:33 Message generated for change (Comment added) made by tebeka 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: Miki Tebeka (tebeka) Date: 2005-06-28 09: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 13: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 _______________________________________________ Patches mailing list [email protected] http://mail.python.org/mailman/listinfo/patches
