Message192555
| Author |
kermit666 |
| Recipients |
ag6502, alex, benjamin.peterson, brett.cannon, eric.araujo, ezio.melotti, kermit666 |
| Date |
2013年07月07日.13:34:33 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1373204074.06.0.047700786065.issue18156@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|