[Patches] [ python-Patches-860326 ] PyErrr_Display and traceback.format_exception_only behaviour

SourceForge.net noreply at sourceforge.net
Mon Dec 15 08:37:04 EST 2003


Patches item #860326, was opened at 2003-12-15 14:37
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=860326&group_id=5470

Category: Modules
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Jürgen Hermann (jhermann)
Assigned to: Nobody/Anonymous (nobody)
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.

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

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



More information about the Patches mailing list