Message1747
It actually looks like this isn't supposed to produce any output if it runs successfully.
If I understand your complaint correctly, it's that Jython returns multiple text nodes for a single, contiguous piece of text in the xml? This is just a property of the underlying DOM created by the Java XML libraries. They create multiple text nodes for that text, so minidom exposes the multiple text nodes. It isn't wrong that CPython makes a single node and it isn't wrong that Jython makes multiple nodes; that behaviour isn't specified by DOM. If you know all the childNodes of a node are going to be text nodes you can just use something like ''.join([subnode.nodeValue for subnode in node.childNodes]) to get it all as a single string. This will work with a single text node in CPython and multiple nodes in Jython.
To add to what Alan and Pekka said a little bit, it's really helpful if you can get your report down to the smallest possible thing that causes the problem. Clearly say what happens, what you expect to happen, and how to make that happen with your test case. Here it wasn't clear that the code didn't print anything at all if it ran successfully. |
|
| Date |
User |
Action |
Args |
| 2008-02-20 17:17:55 | admin | link | issue1757419 messages |
| 2008-02-20 17:17:55 | admin | create | |
|