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
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
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
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
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.
>