[Patches] [ python-Patches-1515343 ] 1515163 fix - traceback and str exc

SourceForge.net noreply at sourceforge.net
Tue Jul 11 22:27:53 CEST 2006


Patches item #1515343, was opened at 2006-06-30 17:49
Message generated for change (Comment added) made by jimjjewett
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1515343&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: Library (Lib)
Group: Python 2.5
Status: Open
Resolution: None
Priority: 7
Submitted By: Jim Jewett (jimjjewett)
Assigned to: Anthony Baxter (anthonybaxter)
Summary: 1515163 fix - traceback and str exc

Initial Comment:
1515163 is a regression from 2.4.

It is fairly obscure, as it should only affect 
deprecated string exceptions which also have a value.

raise "string", "string"

On the other hand, I did run into it while trying to 
clean up unittest.  The patch fixes this problem, and 
adds several test cases.

-jJ



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

>Comment By: Jim Jewett (jimjjewett)
Date: 2006-07-11 16:27

Message:
Logged In: YES 
user_id=764593

traceback.py.diff3.txt is the minimal fix.
traceback.py.diff2.txt is a better fix.

test_traceback.py.diff.txt strengthens the test cases (not 
just this bug; a few others tests as well.)

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

Comment By: Jim Jewett (jimjjewett)
Date: 2006-07-02 22:12

Message:
Logged In: YES 
user_id=764593

I forgot to mention in this tracker that this is a 
regression against 2.4, so it should be fixed even post-
beta, unless we decide to never fix it as part of 
deprecation.



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

Comment By: Jim Jewett (jimjjewett)
Date: 2006-07-01 07:21

Message:
Logged In: YES 
user_id=764593




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

Comment By: Nobody/Anonymous (nobody)
Date: 2006-07-01 07:19

Message:
Logged In: NO 




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

Comment By: Jim Jewett (jimjjewett)
Date: 2006-06-30 17:53

Message:
Logged In: YES 
user_id=764593

For misc/news, I suggest something like

"Fixed an obscure traceback regression when (deprecated) 
strings are raised."


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

Comment By: Jim Jewett (jimjjewett)
Date: 2006-06-30 17:52

Message:
Logged In: YES 
user_id=764593

In order to fix it, I also broke out some repeated code 
into a subfunction, and switched some logic to a more 
modern idiom -- these parts *could* be separated if need 
be, but I won't be able to do it this week.

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

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


More information about the Patches mailing list