A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-March/021854.html below:

R: [Python-Dev] Deprecating string exceptions

R: [Python-Dev] Deprecating string exceptions R: [Python-Dev] Deprecating string exceptionsMartin v. Loewis martin@v.loewis.de
28 Mar 2002 16:24:03 +0100
Guido van Rossum <guido@python.org> writes:

> I can't see any implementation benefits from the requirement.  It
> sounds like you can't either

If the requirement was extended to disallow multiple root classes, it
would disambiguate the case of the class Z(str,Exception): It would be
an error to raise an exception of class Z. Classes that only inherit
from str would continue to operate as string exceptions, classes that
inherit from Exception would be caught by their type - you couldn't
have a class that is both.

Regards,
Martin




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4