[XML-SIG] Python DOM Unification -- level

Andrew M. Kuchling akuchlin@cnri.reston.va.us
Tue, 27 Apr 1999 09:16:41 -0400 (EDT)

Paul Prescod writes:
>Shouldn't the exception objects and class constants be shared between DOM

	Good point; they could be, I suppose.

>Why do Node, NodeList and NamedNodeMap have to be top-level. Does it make
>sense for clients to construct them?

	For code like "if isinstance(obj, Node):..."; otherwise you'd
have no way of telling when a class instance is in fact a DOM node.  I
suppose you could do without NodeList and NamedNodeMap -- they should
simply resemble lists and dictionaries -- but Node is probably

A.M. Kuchling			http://starship.python.net/crew/amk/
No doubt, a scientist isn't necessarily penalized for being a complex,
versatile, eccentric individual with lots of extra-scientific interests. But
it certainly doesn't help him a bit.
    -- Stephen Toulmin