Eli Bendersky added the comment:

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.

----------
Added file: 
http://bugs.python.org/file30347/expat_et_share_unknown_handler.1.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13612>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to