New submission from Kathy Van Stone <[EMAIL PROTECTED]>: The follow code works fine when run directly. It crashes (with a bus error) if used as a mod_python handler. It doesn't crash if ElementTree is replaced with cElementTree.
from xml.etree import ElementTree as eltree def handler(req): body = """<?xml version='1.0' encoding='utf-8'?> <collection uuid="~01edc22c1628e711ddb20220296b032019" href="http://localhost:8888/ws/dataset/~01edc22c1628e711ddb20220296b032019"> <name>Service_offerings query at 2008-05-23 12:47:28.038233</name> </collection>""" response_elem = eltree.XML(body) return 0 I don't know if this a mod_python or ElementTree issue, but it looks more like an ElementTree problem. ---------- components: Library (Lib), Macintosh messages: 67259 nosy: kathyvs severity: normal status: open title: ElementTree parsing bus error (but only from mod_python) type: crash versions: Python 2.5 __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2951> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com