Re: new style exception handleing

2005-02-03 Thread Nick Coghlan
Ola Natvig wrote: Peter Hansen wrote: I can't actually think of a reason to need to base an exception on a new-style class, but perhaps you have a good one... It's quite simple to bypass the problem, it was more the reason I was wondering about too. Basically because fixing it without killing back

Re: new style exception handleing

2005-02-03 Thread Michele Simionato
Google is your friend. This has been discussed a lot in the past. For instance, google for the thread, "Exceptions as New Style Classes", there was also a PEP by Steven Taschuk, IIRC. Michele Simionato -- http://mail.python.org/mailman/listinfo/python-list

Re: new style exception handleing

2005-02-03 Thread Ola Natvig
Peter Hansen wrote: Ola Natvig wrote: Does anybody know why it's not possible to raise Exceptions which are types (new-style-classes). I know all standard exceptions are classic classes, but if you make a custom exception which both inherits from a exception class and a new-style one the it caus

Re: new style exception handleing

2005-02-02 Thread Peter Hansen
Ola Natvig wrote: Does anybody know why it's not possible to raise Exceptions which are types (new-style-classes). I know all standard exceptions are classic classes, but if you make a custom exception which both inherits from a exception class and a new-style one the it causes a type error when

new style exception handleing

2005-02-02 Thread Ola Natvig
Hi all Does anybody know why it's not possible to raise Exceptions which are types (new-style-classes). I know all standard exceptions are classic classes, but if you make a custom exception which both inherits from a exception class and a new-style one the it causes a type error when raised. >