New submission from Jonathan G. Underwood <jonathan.underw...@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: d...@python
components: Documentation
files: extending_how_to_raise_exception.patch
keywords: patch
messages: 108239
nosy: d...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue9037>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to