These are chat archives for dropbox/pyston
dictproxy? While we have the
attrwrapperit looks like we may need the
dictproxyclass to make
C.__dict__readonly. Also I came across code which want's to have a read only dict. (lxml code generated by cython)
dictproxyexpects to wrap around a dict we could let it wrap around our
C.__dict__case because we support the same methods.
>> from lxml import etree >> root = etree.Element("root") >> root.append( etree.Element("child1") ) >> child2 = etree.SubElement(root, "child2") >> child3 = etree.SubElement(root, "child3") >> print(etree.tostring(root, pretty_print=True)) <root> <child1/> <child2/> <child3/> </root>