Patches item #860326, was opened at 2003-12-15 13:37
Message generated for change (Comment added) made by gbrandl
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 2.3
>Status: Closed
>Resolution: Accepted
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.

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

>Comment By: Georg Brandl (gbrandl)
Date: 2006-04-12 21: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
[email protected]
http://mail.python.org/mailman/listinfo/patches

Reply via email to