Patches item #1515343, was opened at 2006-06-30 21:49 Message generated for change (Comment added) made by gbrandl 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: Closed >Resolution: Accepted 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: Georg Brandl (gbrandl) Date: 2006-07-24 14:10 Message: Logged In: YES user_id=849994 Committed in rev. 50803. ---------------------------------------------------------------------- Comment By: Jim Jewett (jimjjewett) Date: 2006-07-11 20: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-03 02: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 11:21 Message: Logged In: YES user_id=764593 ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2006-07-01 11:19 Message: Logged In: NO ---------------------------------------------------------------------- Comment By: Jim Jewett (jimjjewett) Date: 2006-06-30 21: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 21: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 _______________________________________________ Patches mailing list Patches@python.org http://mail.python.org/mailman/listinfo/patches