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 <rep...@bugs.python.org>
<http://bugs.python.org/issue21243>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to