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/2004-February/042516.html below:

[Python-Dev] Re: Syntax for "except"

[Python-Dev] Re: Syntax for "except" [Python-Dev] Re: Syntax for "except"Gerrit gerrit at nl.linux.org
Wed Feb 11 07:14:15 EST 2004
Edward C. Jones wrote:
> Here is a weak proposal for a generalized type of exception. Since I=20
> know nothing about either language design or implementation, my hope is=
=20
> to trigger some thinking by the experts.

I don't know anything about it either.

> MyError =3D ExceptionList( (ValueError, TypeError) )

> "raise MyError"
> raises an exception that can be handled by any except clause that=20
> handles MyError, ValueError, or TypeError.

> Perhaps MyError could be a class with base classes ValueError and TypeE=
rror.

So where's the need? You can already do:

class MyError(ValueError, TypeError):
    ...

etc.?

Gerrit.

--=20
Weather: 6=C2=B0C  Hail Wednesday 11 February 2004 11:55 Twenthe Netherla=
nds
--=20
PrePEP: Builtin path type
    http://people.nl.linux.org/~gerrit/creaties/path/pep-xxxx.html
Asperger's Syndrome - a personal approach:
	http://people.nl.linux.org/~gerrit/english/

More information about the Python-Dev mailing list

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