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 AchimGaedke
Recipients AchimGaedke
Date 2011-12-08.01:06:06
SpamBayes Score 1.7763634e-05
Marked as misclassified No
Message-id <1323306367.38.0.12357904584.issue13551@psf.upfronthosting.co.za>
In-reply-to
Content
sorry, the output given before was generated with python2.7

changing the line
xml.sax.parseString(xml_data, d_handler)

to

xml.sax.parseString(bytes(xml_data, "utf-8"), d_handler)

makes it working for python 3.2, result the same:

$ python3.2 pulldom_test.py
with pulldom
<xml.dom.minidom.Document object at 0x9bf9f2c> []
with minidom
<xml.dom.minidom.Document object at 0x9c2fccc> [<DOM Text node "'\n'">, <DOM Element: a at 0x9c3850c>, <DOM Text node "'\n'">, <DOM Element: b at 0x9c3856c>, <DOM Text node "'\n'">, <DOM Element: c at 0x9c385cc>, <DOM Text node "'\n'">]

Both test were done on debian testing/wheezy.

$ python3.2 -V
Python 3.2.2rc1
$ python -V
Python 2.7.2+
History
Date User Action Args
2011-12-08 01:06:07AchimGaedkesetrecipients: + AchimGaedke
2011-12-08 01:06:07AchimGaedkesetmessageid: <1323306367.38.0.12357904584.issue13551@psf.upfronthosting.co.za>
2011-12-08 01:06:06AchimGaedkelinkissue13551 messages
2011-12-08 01:06:06AchimGaedkecreate