[issue2170] rewrite of minidom.Node.normalize

2009-04-09 Thread R. David Murray
R. David Murray added the comment: Committed in r71414. -- resolution: -> accepted status: open -> closed ___ Python tracker ___ ___

[issue2170] rewrite of minidom.Node.normalize

2009-04-09 Thread R. David Murray
Changes by R. David Murray : -- versions: -Python 2.6, Python 3.0 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue2170] rewrite of minidom.Node.normalize

2009-04-07 Thread A.M. Kuchling
A.M. Kuchling added the comment: The new version of the code looks all right, so I think this patch can be applied. -- ___ Python tracker ___

[issue2170] rewrite of minidom.Node.normalize

2009-04-05 Thread R. David Murray
R. David Murray added the comment: Andrew, any objection to my going ahead and applying this patch? -- ___ Python tracker ___ ___ Pyth

[issue2170] rewrite of minidom.Node.normalize

2009-03-25 Thread R. David Murray
Changes by R. David Murray : -- stage: patch review -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue2170] rewrite of minidom.Node.normalize

2009-03-22 Thread Brett Cannon
Changes by Brett Cannon : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue2170] rewrite of minidom.Node.normalize

2009-03-19 Thread Malte Helmert
Malte Helmert added the comment: Short review: code looks good to me, patch applies cleanly to trunk, passes tests. @akuchling: I don't know if you remember, but this rewrite was originally suggested by you on a bug day some time ago. I think David's patch is ready to be applied. -- _

[issue2170] rewrite of minidom.Node.normalize

2009-03-19 Thread R. David Murray
R. David Murray added the comment: Removed old patches, updated patch to remvoe the unnecessary local variable assignment (also pushed to launchpad). -- Added file: http://bugs.python.org/file13374/issue2170.patch ___ Python tracker

[issue2170] rewrite of minidom.Node.normalize

2009-03-19 Thread R. David Murray
Changes by R. David Murray : Removed file: http://bugs.python.org/file13352/issue2170.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue2170] rewrite of minidom.Node.normalize

2009-03-19 Thread R. David Murray
Changes by R. David Murray : Removed file: http://bugs.python.org/file13312/test_minidom.patch ___ Python tracker ___ ___ Python-bugs-list mail

[issue2170] rewrite of minidom.Node.normalize

2009-03-17 Thread Malte Helmert
Malte Helmert added the comment: I removed my original patch which has been superseded by David's patch. David, I suggest that you also remove test_minidom.patch which is superseded by your later patch (see http://bugs.python.org/msg77766 for policy on this). -- __

[issue2170] rewrite of minidom.Node.normalize

2009-03-17 Thread Malte Helmert
Changes by Malte Helmert : Removed file: http://bugs.python.org/file9513/minidom.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue2170] rewrite of minidom.Node.normalize

2009-03-17 Thread Malte Helmert
Malte Helmert added the comment: While we're cleaning up: data = child.data if not data: could be if not child.data: since data is not used again. Alternatively, you could use data in place of child.data later on for a small speed-up, but I doubt that we care about such sma

[issue2170] rewrite of minidom.Node.normalize

2009-03-17 Thread R. David Murray
Changes by R. David Murray : Removed file: http://bugs.python.org/file13349/issue2170.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue2170] rewrite of minidom.Node.normalize

2009-03-17 Thread R. David Murray
R. David Murray added the comment: Added several more tests, to validate the sibling link code more, and fixed the bug. -- Added file: http://bugs.python.org/file13352/issue2170.patch ___ Python tracker ___

[issue2170] rewrite of minidom.Node.normalize

2009-03-17 Thread R. David Murray
R. David Murray added the comment: You are absolutely right. I will write a test case and fix the patch. -- ___ Python tracker ___ __

[issue2170] rewrite of minidom.Node.normalize

2009-03-17 Thread Malte Helmert
Malte Helmert added the comment: I eyeballed the new patch and wonder if the case where text nodes are collapsed is handled correctly. Assume that self.childNodes contains nodes [A, B, C], where A and B are non-empty text nodes and C is a non-text node. The algorithm would collapse A and B into

[issue2170] rewrite of minidom.Node.normalize

2009-03-17 Thread R. David Murray
R. David Murray added the comment: Er, I meant to say, "as easy to understand" as the proposed patch. -- ___ Python tracker ___ ___ Py

[issue2170] rewrite of minidom.Node.normalize

2009-03-17 Thread R. David Murray
R. David Murray added the comment: I checked the speed of the proposed patch, and found that it was definitely slower than the original code. So I took another look at the original, and refactored it in a different way: instead of moving the sibling relinking into a second pass, I changed to co

[issue2170] rewrite of minidom.Node.normalize

2009-03-12 Thread R. David Murray
R. David Murray added the comment: I have applied the supplied patch to the current trunk, and it passes the tests. I've also attached a more extensive test case that exercises the recursion. -- keywords: +patch nosy: +bitdancer Added file: http://bugs.python.org/file13312/test_minidom

[issue2170] rewrite of minidom.Node.normalize

2008-02-23 Thread A.M. Kuchling
Changes by A.M. Kuchling: -- assignee: -> akuchling nosy: +akuchling __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsub

[issue2170] rewrite of minidom.Node.normalize

2008-02-23 Thread Malte Helmert
New submission from Malte Helmert: In the discussion of #1433694 on the #python-dev channel, it was observed that the normalize method of minidom.Node could take some refactoring. A patch is attached. -- components: XML files: minidom.diff messages: 62794 nosy: maltehelmert severity: nor