[Python-Dev] Deprecating string exceptions
Martin v. Loewis
martin@v.loewis.de
27 Mar 2002 20:15:56 +0100
Guido van Rossum <guido@python.org> writes:
> Can we safely make Exception (and hence all built-in exceptions) a
> new-style class? This could break user code (even when we don't
> enforce that exceptions are derived from Exception).
I see no need to make such a change, with this change alone, I can't
see risks for breaking code, either.
If you would also make Exception.args a slot, there would be a
rationale (efficiency), but you would also more likely break user
code.
Regards,
Martin