This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kathyvs
Recipients kathyvs
Date 2008-05-23.17:59:32
SpamBayes Score 0.006834346
Marked as misclassified No
Message-id <1211565579.45.0.763330988931.issue2951@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2008-05-23 17:59:42kathyvssetspambayes_score: 0.00683435 -> 0.006834346
recipients: + kathyvs
2008-05-23 17:59:39kathyvssetspambayes_score: 0.00683435 -> 0.00683435
messageid: <1211565579.45.0.763330988931.issue2951@psf.upfronthosting.co.za>
2008-05-23 17:59:37kathyvslinkissue2951 messages
2008-05-23 17:59:34kathyvscreate