Message189865
| Author |
eli.bendersky |
| Recipients |
amaury.forgeotdarc, dongying, eli.bendersky, ezio.melotti, flox, serhiy.storchaka, terry.reedy, vstinner |
| Date |
2013年05月23日.12:48:20 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1369313300.75.0.018359121.issue13612@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
How about this patch (not tested it too much - just as a proof of concept).
We're pretty free in the C API exported by pyexpat through a capsule to _elementtree, so we can also add a default handler there. This API already has some general utilities like ErrorString.
ET can then simply call the handler from pyexpat. |
|