[XML-SIG] minidom changes & additional modules

Fred L. Drake, Jr. fdrake@acm.org
Fri, 15 Feb 2002 11:57:18 -0500

Uche Ogbuji writes:
 > cDomlette supports xml:base.  Each node has an xmlBase python
 > attribute on it with the appropriate value.  Why don't we enshrine
 > this into the Python/DOM binding?  xml:base is ludicrously simple

Every node, or just the non-Attr nodes that have children?

I'd be inclined to make it "lazy" and go searching up the tree to get
the base; one optimization I'd like to persue later is trying to make
the node.__dict__ not grow beyond 5 entries whenever possible.
(Allowing it to grow past that means an extra malloc() call.)


Fred L. Drake, Jr.  <fdrake at acm.org>
PythonLabs at Zope Corporation