[Python-bugs-list] [ python-Bugs-557436 ] TclError is a str should be an Exception
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 04 Jun 2002 10:14:45 -0700
Bugs item #557436, was opened at 2002-05-17 16:39
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=557436&group_id=5470
Category: Tkinter
Group: Python 2.3
>Status: Closed
Resolution: Accepted
Priority: 5
Submitted By: Neal Norwitz (nnorwitz)
Assigned to: Neal Norwitz (nnorwitz)
Summary: TclError is a str should be an Exception
Initial Comment:
Since string exceptions are deprecated, it seems that
TclError (in _tkinter.c) should be changed to derive
from Exception.
It isn't apparent to me how to accomplish this. If
someone can provide a quick high-level description, I
can make a patch.
----------------------------------------------------------------------
>Comment By: Neal Norwitz (nnorwitz)
Date: 2002-06-04 13:14
Message:
Logged In: YES
user_id=33168
Checked in as Modules/_tkinter.c 1.125 and Misc/NEWS 1.415
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2002-06-02 08:49
Message:
Logged In: YES
user_id=21627
The patch looks good; please apply it. Also add a note in
Misc/NEWS, and send a message to python-dev or amk that this
is potentially an incompatibility.
----------------------------------------------------------------------
Comment By: Neal Norwitz (nnorwitz)
Date: 2002-05-25 09:34
Message:
Logged In: YES
user_id=33168
The attached patch seems to work,
but I'm not sure I'm exercising it appropriately.
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2002-05-22 12:56
Message:
Logged In: YES
user_id=21627
The official API is PyErr_NewException, where NULL as the
base class indicates to inherit from Exception.
----------------------------------------------------------------------
Comment By: Raymond Hettinger (rhettinger)
Date: 2002-05-18 04:45
Message:
Logged In: YES
user_id=80475
Try makeclass() in Python/exceptions.c -- the file also
shows how all the built-in exceptions get created.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=557436&group_id=5470