[issue9037] Add explanation as to how to raise a custom exception in the extending python intermezzo on exceptions

Jonathan G. Underwood report at bugs.python.org
Sun Jun 20 18:55:06 CEST 2010


New submission from Jonathan G. Underwood <jonathan.underwood at gmail.com>:

In the documentation section on Extending Python with C or C++ there is an Intermezzo on Errors and Exceptions which shows how to create a custom exception in an extension module. I was just following these instructions for the first time and got to the end and was left wondering how to actually raise the custom exception in my new module, and it wasn't immediately obvious, so I propose to add a brief explanation to the end of that section explaining how. Patch attached.

----------
assignee: docs at python
components: Documentation
files: extending_how_to_raise_exception.patch
keywords: patch
messages: 108239
nosy: docs at python, jonathan.underwood
priority: normal
severity: normal
status: open
title: Add explanation as to how to raise a custom exception in the extending python intermezzo on exceptions
type: feature request
versions: Python 2.7
Added file: http://bugs.python.org/file17725/extending_how_to_raise_exception.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9037>
_______________________________________


More information about the Python-bugs-list mailing list