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.

Author jonathan.underwood
Recipients docs@python, jonathan.underwood
Date 2010-06-20.16:55:03
SpamBayes Score 0.0657472
Marked as misclassified No
Message-id <1277052906.52.0.842872873757.issue9037@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-06-20 16:55:06jonathan.underwoodsetrecipients: + jonathan.underwood, docs@python
2010-06-20 16:55:06jonathan.underwoodsetmessageid: <1277052906.52.0.842872873757.issue9037@psf.upfronthosting.co.za>
2010-06-20 16:55:04jonathan.underwoodlinkissue9037 messages
2010-06-20 16:55:04jonathan.underwoodcreate