C/API - Document exceptions #51282
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
assignee = None closed_at = <Date 2009-12-28.08:36:09.925> created_at = <Date 2009-10-02.11:14:29.034> labels = ['interpreter-core', 'type-feature'] title = 'C/API - Document exceptions' updated_at = <Date 2009-12-30.07:26:45.211> user = 'https://github.com/lekma'
activity = <Date 2009-12-30.07:26:45.211> actor = 'lekma' assignee = 'none' closed = True closed_date = <Date 2009-12-28.08:36:09.925> closer = 'georg.brandl' components = ['Interpreter Core'] creation = <Date 2009-10-02.11:14:29.034> creator = 'lekma' dependencies =  files = ['15021', '15022', '15035', '15036', '15645', '15646'] hgrepos =  issue_num = 7033 keywords = ['patch'] message_count = 19.0 messages = ['93439', '93448', '93449', '93484', '93526', '93527', '96667', '96675', '96676', '96677', '96679', '96680', '96682', '96740', '96741', '96943', '96946', '97009', '97022'] nosy_count = 4.0 nosy_names = ['georg.brandl', 'pitrou', 'r.david.murray', 'lekma'] pr_nums =  priority = 'normal' resolution = 'accepted' stage = 'patch review' status = 'closed' superseder = None type = 'enhancement' url = 'https://bugs.python.org/issue7033' versions = ['Python 2.7', 'Python 3.2']
The text was updated successfully, but these errors were encountered:
It would be nice to have an obvious/simple way to document C exceptions
PyObject *PyErr_Create(char *name, const char *doc)
PyObject *PyErr_Create2(char *name, const char *doc, PyObject *base)
for py3k the signatures would be: PyObject *PyErr_Create(const char *name, const char *doc) PyObject *PyErr_Create2(const char *name, const char *doc, PyObject *base)
Internally, these functions would pass a dict to PyErr_NewException with
If there is support for this, I can provide patches for trunk and py3k.
Sounds like a useful new API. Two comments:
Even though I don't fully agree with your comments here is a second
For the record, I think that the signature difference is enough to
But, hey, I'm happy if this gets in (in any form :).