[omniORB] omniORBpy Exception Question (and omniidl exception
patch).
Richard Gruet
rgruet@ina.fr
Tue, 28 Mar 2000 16:43:05 +0200
Duncan,
I'd prefer that you do NOT remove the inheritance from class Exception, I
have some code that rely on this (but not calling __init__ is OK).
Richard Gruet
Duncan Grisby wrote:
> On Monday 27 March, Randy Wiser wrote:
>
> > Why do the stubs generated by omniidl inherit from class Exception
> > in the standard Python module exceptions.py, but the generated
> > __init__ methods fail to call the __init__ method
> > (exceptions.Exception.__init__) in the class they inherit from?
>
> There is, in fact, no reason for CORBA.Exception to be derived from
> exceptions.Exception, so I have removed it. It doesn't do any harm to
> inherit from exceptions.Exception, but it would be wrong to call its
> __init__() method, since that would potentially overwrite exception
> data members.
>