New submission from Berker Peksag:

>From https://docs.python.org/3/library/exceptions.html#SystemExit

    Also, this exception derives directly from BaseException and not Exception, 
since it is not technically an error.

and

    The exception inherits from BaseException instead of Exception so that it 
is not accidentally caught by code that catches Exception. This allows the 
exception to properly propagate up and cause the interpreter to exit.

Here is a patch to remove the duplicate content and document the code attribute 
properly.

----------
assignee: docs@python
components: Documentation
files: systemexit.diff
keywords: patch
messages: 235684
nosy: berker.peksag, docs@python
priority: normal
severity: normal
stage: patch review
status: open
title: Duplicate content in SystemExit documentation
versions: Python 3.4, Python 3.5
Added file: http://bugs.python.org/file38082/systemexit.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23432>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to