Message192555
OK, thanks for the feedback. I signed the CLA.
I'll then wait with the remaining work, until a final decision has been made. We have a rough idea of how it could be implemented if it comes to this - adding a wrapper function in Python/errors.c:
PyErr_SetAttributeError(PyObject *attr, const char *format, ...)
that would replace all the PyErr_SetObject, PyErr_SetString and PyErr_Format calls (in around 50 files), create the kwargs object, format the message (if provided) and call PyErr_SetObject or PyErr_SetFormat.
I put the last patch as a commit in the attr bookmark on BitBucket (took me quite some time to figure out that's the alternative to git branches), so that subsequent changes go more easily. |
|
Date |
User |
Action |
Args |
2013-07-07 13:34:34 | kermit666 | set | recipients:
+ kermit666, brett.cannon, ag6502, benjamin.peterson, ezio.melotti, eric.araujo, alex |
2013-07-07 13:34:34 | kermit666 | set | messageid: <1373204074.06.0.047700786065.issue18156@psf.upfronthosting.co.za> |
2013-07-07 13:34:34 | kermit666 | link | issue18156 messages |
2013-07-07 13:34:33 | kermit666 | create | |
|