[XML-SIG] Different results on Windows and Linux

M.-A. Lemburg mal@lemburg.com
Thu, 27 Feb 2003 18:09:41 +0100


Christian Zagrodnick wrote:
> Hi there
> 
> 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)

Please file a bug report on SF for this. Thanks.

> 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.

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Software directly from the Source  (#1, Feb 27 2003)
 >>> Python/Zope Products & Consulting ...         http://www.egenix.com/
 >>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
________________________________________________________________________
Python UK 2003, Oxford:                                     33 days left
EuroPython 2003, Charleroi, Belgium:                       117 days left