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/055025.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.0Brett Cannon bcannon at gmail.com
Sat Jul 30 09:59:12 CEST 2005
OK, I withdraw the suggestion of the subclassing of SystemError by SystemExit.

-Brett

On 7/29/05, Guido van Rossum <gvanrossum at gmail.com> wrote:
> On 7/29/05, Robert Brewer <fumanchu at amor.org> wrote:
> > >     +-- SystemExit
> > >     +-- SystemError (subclass SystemExit?)
> >
> > 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.
> 
> Agreed. SystemExit is used by sys.exit(); SystemError is something
> completely different, used by the interpreter when it finds an
> internal invariant is broken. It is one step short of a fatal error --
> the latter is used when we have evidence of random memory scribbling,
> the former when the interpreter is still intact.
> 
> --
> --Guido van Rossum (home page: http://www.python.org/~guido/)
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: http://mail.python.org/mailman/options/python-dev/brett%40python.org
>
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