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

SourceForge.net noreply at sourceforge.net
Sun Apr 30 10:29:02 CEST 2006


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 3000
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.

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

>Comment By: Georg Brandl (gbrandl)
Date: 2006-04-30 08: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-13 02: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-13 01: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 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


More information about the Patches mailing list