homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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 2022年04月11日 14:57 by admin. 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
2022年04月11日 14:57:02adminsetgithub: 53283
2010年08月02日 20:21:28georg.brandlsetstatus: open -> closed

nosy: + georg.brandl
messages: + msg112534

resolution: accepted
2010年06月20日 16:55:05jonathan.underwoodcreate

AltStyle によって変換されたページ (->オリジナル) /