Issue 860326: PyErrr_Display and traceback.format_exception_only behaviour (original) (raw)

Created on 2003-12-15 13:37 by jhermann, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
traceback.py.patch jhermann,2003-12-15 13:37
tb_problem.py jhermann,2003-12-15 13:38 Bug demonstration
Messages (6)
msg45051 - (view) Author: Jürgen Hermann (jhermann) Date: 2003-12-15 13:37
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.
msg45052 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-04-12 21:16
Logged In: YES user_id=849994 Late is better than never ;) Thanks for the patch, I applied it as rev. 45321, 45322(2.4).
msg45053 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2006-04-13 01:17
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).
msg45054 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2006-04-13 02:29
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.
msg45055 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-04-30 08:29
Logged In: YES user_id=849994 Seems like this is an item for Python 3000.
msg45056 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2006-08-26 20:40
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.
History
Date User Action Args
2022-04-11 14:56:01 admin set github: 39709
2008-01-06 22:29:46 admin set keywords: - py3kversions: + Python 3.0
2003-12-15 13:37:04 jhermann create