[New-bugs-announce] [issue21243] Auto-generate exceptions.c from a Python file

Brett Cannon report at bugs.python.org
Tue Apr 15 20:12:29 CEST 2014


New submission from Brett Cannon:

There isn't very much that's special about the various exceptions (although maybe there will be some day). Anyway, it seems like we could, if we so desired, define the exceptions in Python and then auto-generate the C code.

The other option is to obviously just load the exceptions from Python code, store the various objects in various C attributes, and update the C API for exceptions to operate off of the Python-defined exception objects (question is what performance impact that would have).

The key question, though, is whether any of this is actually worth it. =)

----------
components: Interpreter Core
messages: 216354
nosy: brett.cannon
priority: low
severity: normal
stage: needs patch
status: open
title: Auto-generate exceptions.c from a Python file
type: enhancement
versions: Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21243>
_______________________________________


More information about the New-bugs-announce mailing list