[Python-bugs-list] [ python-Bugs-557436 ] TclError is a str should be an Exception

noreply@sourceforge.net noreply@sourceforge.net
Sat, 18 May 2002 01:45:02 -0700


Bugs item #557436, was opened at 2002-05-17 15: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: Open
Resolution: None
Priority: 5
Submitted By: Neal Norwitz (nnorwitz)
Assigned to: Nobody/Anonymous (nobody)
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: Raymond Hettinger (rhettinger)
Date: 2002-05-18 03: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