[New-bugs-announce] [issue18733] elementtree: stop the parser more quickly on error

STINNER Victor report at bugs.python.org
Wed Aug 14 01:58:20 CEST 2013


New submission from STINNER Victor:

When a Python handler of a XML tag fails, the ElementTree parser continues to parse the whole document. It would be nice to stop the parser more quickly.

The pyexpat module unregisters all handlers to fail more quickly. ElementTree may do something similar.

Or does the expat library have a function or attribute to stop the XML parser?

See also the issue #18501 (_elementtree.c calls Python callbacks while a Python exception is set).

----------
components: XML
messages: 195110
nosy: fdrake, haypo
priority: normal
severity: normal
status: open
title: elementtree: stop the parser more quickly on error
type: performance
versions: Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18733>
_______________________________________


More information about the New-bugs-announce mailing list