[Pythonmac-SIG] MacOS.Error exceptions

Jack Jansen Jack.Jansen@oratrix.com
Sat, 30 Mar 2002 23:19:42 +0100


On zaterdag, maart 30, 2002, at 08:12 , Donovan Preston wrote:
> The issue is that MacOS.Error, which is raised as an exception 
> from many of the toolbox modules, does not descend from 
> Exception. In the pre-python 2.2 class-type model, I'm not sure 
> it could have inherited from Exception, since it is defined in 
> a C module; I'm wondering if it's possible now, and for the 
> sake of consistency if we should try to make MacOS.Error 
> descend from Exception?

Purely an oversight on my part. Please post a bug report on the 
sourceforge tracker. And a patch will also gracefully be 
accepted, of course:-) I think the exception is created in 
pymactoolboxglue.c nowadays.
--
- Jack Jansen        <Jack.Jansen@oratrix.com>        
http://www.cwi.nl/~jack -
- If I can't dance I don't want to be part of your revolution -- 
Emma Goldman -