Patches item #860326, was opened at 2003-12-15 08:37 Message generated for change (Comment added) made by gvanrossum You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=860326&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: Modules Group: Python 3000 >Status: Closed >Resolution: Accepted Priority: 5 Submitted By: Jürgen Hermann (jhermann) >Assigned to: Guido van Rossum (gvanrossum) Summary: PyErrr_Display and traceback.format_exception_only behaviour Initial Comment: PyErrr_Display and traceback.format_exception_only behave differently; namely, the first one prints the module of an exception, the latter not. The attached tb_problem.py illustrates the problem, it prints: Error: text Traceback (most recent call last): File "tb_problem.py", line 3, in ? raise uu.Error("text") uu.Error: text (note the diff betwen "Error:..." and "ui.Error:...") The attached patch fixes this. Python 2.2.2 has the same problem. ---------------------------------------------------------------------- >Comment By: Guido van Rossum (gvanrossum) Date: 2006-08-26 16:40 Message: Logged In: YES user_id=6380 Committed in the p3yk branch as revision 51625. This isn't exactly the same patch, and also fixes the doctests that this here patch broke, but it fixes the same issue. ---------------------------------------------------------------------- Comment By: Georg Brandl (gbrandl) Date: 2006-04-30 04:29 Message: Logged In: YES user_id=849994 Seems like this is an item for Python 3000. ---------------------------------------------------------------------- Comment By: Tim Peters (tim_one) Date: 2006-04-12 22:29 Message: Logged In: YES user_id=31435 Opened this again. Anthony reverted the patch on both trunk and 2.4 branch. Whether it will be applied on the trunk again is being discussed on python-dev. ---------------------------------------------------------------------- Comment By: Tim Peters (tim_one) Date: 2006-04-12 21:17 Message: Logged In: YES user_id=31435 As noted on python-dev, the 2.4-branch backport should be reverted, because it changes visible behavior (including causing at least three of the standard tests to fail). ---------------------------------------------------------------------- Comment By: Georg Brandl (gbrandl) Date: 2006-04-12 17:16 Message: Logged In: YES user_id=849994 Late is better than never ;) Thanks for the patch, I applied it as rev. 45321, 45322(2.4). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=860326&group_id=5470 _______________________________________________ Patches mailing list Patches@python.org http://mail.python.org/mailman/listinfo/patches