
Jan. 27, 2015
4:51 p.m.
Am .01.2015, 17:38 Uhr, schrieb jens quade <jq@qdevelop.de>:
you still copy the attribute values, but all at once:
y.attrib.update(x.items()) x.attrib.clear()
Nice trick! y.attrib.update(x.attrib) is also possible. I don't know if there's any performance improvement on not calling the items method. Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Kronenstr. 27a Düsseldorf D- 40217 Tel: +49-211-600-3657 Mobile: +49-178-782-6226