classification
Title: Add explanation as to how to raise a custom exception in the extending python intermezzo on exceptions
Type: enhancement Stage:
Components: Documentation Versions: Python 2.7
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, georg.brandl, jonathan.underwood
Priority: normal Keywords: patch

Created on 2010-06-20 16:55 by jonathan.underwood, last changed 2010-08-02 20:21 by georg.brandl. This issue is now closed.

Files
File name Uploaded Description Edit
extending_how_to_raise_exception.patch jonathan.underwood, 2010-06-20 16:55 Add a brief explanation showing how to raise a custom exception in an extension module
Messages (2)
msg108239 - (view) Author: Jonathan G. Underwood (jonathan.underwood) Date: 2010-06-20 16:55
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.
msg112534 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2010-08-02 20:21
Added in r83563. Thanks!
History
Date User Action Args
2010-08-02 20:21:28georg.brandlsetstatus: open -> closed

nosy: + georg.brandl
messages: + msg112534

resolution: accepted
2010-06-20 16:55:05jonathan.underwoodcreate