[issue9037] Add explanation as to how to raise a custom exception in the extending python intermezzo on exceptions
New submission from Jonathan G. Underwood <jonathan.underwood@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@python components: Documentation files: extending_how_to_raise_exception.patch keywords: patch messages: 108239 nosy: docs@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@bugs.python.org> <http://bugs.python.org/issue9037> _______________________________________
Georg Brandl <georg@python.org> added the comment: Added in r83563. Thanks! ---------- nosy: +georg.brandl resolution: -> accepted status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue9037> _______________________________________
participants (2)
-
Georg Brandl
-
Jonathan G. Underwood