Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#3345 enhancement closed duplicate (duplicate)

domish.Element comparison not possible

Reported by: grossetti Owned by:
Priority: normal Milestone: totally automated release infrastructure
Component: words Keywords: domish.Element compare
Cc: Branch:
Author:

Description

Hello, as discussed in my post on twisted-python (http://www.twistedmatrix.com/pipermail/twisted-python/2008-July/018059.html), it is not possible to compare domish.Element objects. I think this is usesful since the string version of the XML (created by using domish.Element.toXml()) may not be the same, since attributes may be in any given order in XML, so you can't compare it. I am submitting two small patchs, one for /twisted/words/xish/domish.py and /twisted/words/test/test_domish.py made against the reversion 24240 in Trunk that add the __eq__() and __ne__() methods and their unit test.

Gabriel

Change History (6)

comment:1 Changed 9 years ago by grossetti

Resolution: invalid
Status: newclosed

comment:2 Changed 9 years ago by grossetti

Resolution: invalid
Status: closedreopened

comment:3 Changed 9 years ago by grossetti

Resolution: duplicate
Status: reopenedclosed

comment:4 in reply to:  3 Changed 9 years ago by grossetti

Replying to grossetti:

sorry, I had pressed submit twice and this ticket was created, can it be totally removed?

comment:5 Changed 9 years ago by Thijs Triemstra

Nope, cause there might be newer tickets created by now. It's not bad, just be careful with that submit btn nxt time ;)

comment:6 Changed 7 years ago by <automation>

Owner: Jean-Paul Calderone deleted
Note: See TracTickets for help on using tickets.