Hi Jack >>>>> "Jack" == Jack Bates <jack.ba...@gmail.com> writes:
Jack> i have a domish element - when i try the following, >>>> message = element >>>> del message['from'] >>>> element['from'] Jack> - i get a key error Jack> to avoid this key error, i think i want to copy the element, so i can Jack> drop the 'from' attribute from one copy without affecting the other? Jack> but i didn't find anything to make a copy in the domish element api Jack> how should i avoid this key error? If I'm interpreting you right, you might try from copy import deepcopy message = deepcopy(element) # etc. Not sure what this has to do with Twisted :-) Terry _______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python