Samuele Pedroni <pedroni@...>:
> maybe in this case you don't know what you are doing <wink>,
> consider e.g. that Jython 2.1, comes with a larger subset of PyXML
> than Python 2.1 wrt to DOM support.
While this might be true, I suspect what you really mean is: "Jython 2.1,
comes with a *smaller* subset of *std.-lib.* XML than Python *2.2* wrt
to DOM support", don't you? ;-) If, OTOH, there are no typos in your
statement above, then I'm not sure I understand why there should be
such differences? So, for the rest I'll assume there were typos.
First I doubt very much that *any* Python or Jython version now includes
PyXML, which is the XML-SIG's stuff, (I sometimes would wish so, and then,
sometimes I don't). PyXML is in version 0.7.x and is to the best of my
knowledge *not yet* bundled directly with any Python version. I would be
really surprised if the XML-SIGs reasoning was different for Jython.
Then, while it might be the case that Python/Jython 2.2 has more (stan-
dard lib.) XML support than Python/Jython *2.1*, I claim that this is
totally irrelevant in my case because I'm using low-level functionality
that I *know* to be working on Python 2.0 and 2.1 as well. I should have
mentioned this earlier, yes, and I'm sorry for not doing so.
Moreover, I also noticed what could be another error in the functions
minidom.parse() and minidom.parseString() as implemented in Jython 2.1:
dinu% python
Python 2.2 (#1, Feb 13 2002, 11:18:45)
[GCC 2.95.2 19991024 (release)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> import xml.dom.minidom
>>> xml.dom.minidom.parseString("<foo>bar</foo>")
<xml.dom.minidom.Document instance at 0x575e70>
>>>
dinu% jython
Jython 2.1 on java1.3.1 (JIT: null)
Type "copyright", "credits" or "license" for more information.
>>>
>>> import xml.dom.minidom
>>> xml.dom.minidom.parseString("<foo>bar</foo>")
Traceback (innermost last):
File "<console>", line 1, in ?
File "/jython-2.1/Lib/xml/dom/minidom.py", line 913, in parseString
File "/jython-2.1/Lib/xml/dom/minidom.py", line 900, in _doparse
File "/jython-2.1/Lib/xml/dom/pulldom.py", line 251, in getEvent
AttributeError: feed
>>>
I hope it's clearer now what I think the problem really is.
Regards,
Dinu
|