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/2005-July/055032.html below:

[Python-Dev] Pre-PEP: Exception Reorganization for Python 3.0

[Python-Dev] Pre-PEP: Exception Reorganization for Python 3.0 [Python-Dev] Pre-PEP: Exception Reorganization for Python 3.0James Y Knight foom at fuhm.net
Sat Jul 30 14:37:15 CEST 2005
On Jul 29, 2005, at 11:07 PM, Robert Brewer wrote:

> I'd recommend not subclassing SystemExit--there are too many programs
> out there which expect the argument (e.g. sys.exit(3)) to mean  
> something
> specific, but that expectation doesn't apply at all to SystemError.

Yes please make note of this for *all* exception (and otherwise)  
inheritance. You must ensure that any exception B that inherits from  
A conforms to A's interface! If that isn't the case, it shouldn't  
inherit. Lots of people seem to forget this, and it's always a pain  
in the ass.

James
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