[XML-SIG] [ pyxml-Bugs-694900 ] Different results on Windows and Linux

SourceForge.net noreply@sourceforge.net
Thu, 27 Feb 2003 23:53:19 -0800


Bugs item #694900, was opened at 2003-02-28 07:53
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=106473&aid=694900&group_id=6473

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Christian Zagrodnick (zagy)
Assigned to: Nobody/Anonymous (nobody)
Summary: Different results on Windows and Linux

Initial Comment:
running the following little script on both windows
(active state python
2.2.2 with pyxml 0.8.2) and linux (python 2.2.2 with
same pyxml)

from xml.dom.minidom import parseString
doc = parseString('<alpha><beta
no="a"><gamma><delta>1</delta></gamma><delta
mark="foo">2</delta><gamma
mark="bar"><delta>3</delta></gamma></beta><beta
no="b"><delta>4</delta><gamma><delta>5</delta></gamma></beta></alpha>')
from xml import xpath
from xml.xpath.Context import Context   
context = Context(doc, 0, 0)
print xpath.Evaluate('/alpha/beta[attribute::no = 1]',
context=context)  

results in [] (correct) on windows and [<DOM Element:
beta at 0x820fd54>,
<DOM Element: beta at 0x8209a74>] (wrong) on Linux.

This probably has todo with Python's broken NaN
implementation.
Nevertheless it should work on all platforms.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=106473&aid=694900&group_id=6473