[issue10131] deepcopying an xml.dom.minidom.Document generates an invalid XML document

2011-11-24 Thread Marian Ganisin
Marian Ganisin added the comment: Code from msg146175 with attached patch applied: >>> import sys >>> print(sys.version_info) sys.version_info(major=2, minor=7, micro=2, releaselevel='final', serial=0) >>> import copy, pickle >>> from xml.dom.m

[issue10131] deepcopying an xml.dom.minidom.Document generates an invalid XML document

2011-07-29 Thread Marian Ganisin
Marian Ganisin added the comment: xml.dom.minicompat.NodeList provides __reduce__/__reduce_ex__ methods, they return "state" as well as "list iterator". However one of those seems to be absolutely enough for reconstruction of instance (__reduce__/__reduce_ex__ are