Nemeskey Dávid added the comment:
Amaury: see my previous comment. There are two problems with the method you
proposed:
1. It is not mentioned in the documentation that exceptions are propagated
through parse().
2. Exceptions usually mean that an error has happened, and is not the preferred
Nemeskey Dávid added the comment:
loewis: I don't think it would be difficult to fix, so theoretically I'd be in.
However, I don't really have the time to work on this right now.
--
___
Python tracker
<http://bugs.pyt
Nemeskey Dávid added the comment:
OK, then this issue has a "bug" part, too: it is not mentioned in the
documentation that exceptions from the handler methods propagate through the
Parse() method. I guess the parser can be then stopped in this way too, but it
is a dirty method as
New submission from Nemeskey Dávid:
The C expat library provides XML_StopParser() method that allows the parsing to
be stopped from the handler functions. It would be nice to have this option in
Python as well, maybe by adding StopParser() method to the XMLParser class.
--
components