[issue18501] _elementtree.c calls Python callbacks while a Python exception is set

2013-08-13 Thread STINNER Victor
STINNER Victor added the comment: > Instead of having to check if an exception is set in each Python > callback, it would be better to "stop" the XML parser. I created the issue #18733 to track this optimization. The initial issue is fixed, so I'm closing it. -- resolution: -> fixed s

[issue18501] _elementtree.c calls Python callbacks while a Python exception is set

2013-07-18 Thread STINNER Victor
STINNER Victor added the comment: See also the issue #18488, similar issue in sqlite. -- ___ Python tracker ___ ___ Python-bugs-list m

[issue18501] _elementtree.c calls Python callbacks while a Python exception is set

2013-07-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5a6cdc0d7de1 by Victor Stinner in branch 'default': Issue #18501, #18408: Fix expat handlers in pyexpat, don't call Python http://hg.python.org/cpython/rev/5a6cdc0d7de1 -- nosy: +python-dev ___ Python tra

[issue18501] _elementtree.c calls Python callbacks while a Python exception is set

2013-07-18 Thread Fred L. Drake, Jr.
Changes by Fred L. Drake, Jr. : -- nosy: +fdrake ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue18501] _elementtree.c calls Python callbacks while a Python exception is set

2013-07-18 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue18501] _elementtree.c calls Python callbacks while a Python exception is set

2013-07-18 Thread STINNER Victor
STINNER Victor added the comment: For the issue #18408, I added assertions in PyEval_EvalFrameEx() and similar functions to exit with an assertion error in debug mode if these functions are called with an exception set: New changeset 48a869a39e2d by Victor Stinner in branch 'default': Issue #1

[issue18501] _elementtree.c calls Python callbacks while a Python exception is set

2013-07-18 Thread STINNER Victor
New submission from STINNER Victor: The ElementTree module allows to write a XML parser using Python callbacks. The module relies on the expat library which is implemented in C. Expat calls these Python callbacks, but ElementTree does not check if a Python exception was raised or not. Example