Paul Prescod paul@prescod.net
Mon, 19 Apr 1999 12:17:19 -0500

uche.ogbuji@fourthought.com wrote:
> This does make sense.  The first question would be philisohical: should such a
> unified interface stick closely to the W3C's IDL, or should it be more
> faithful to Python (i.e. returning PyLists instead of NodeList objects).  This
> is the main difference between the two Python DOM implementation.  We could
> build an adapter accordingly (most of the work is already don with
> DOM.Ext.NodeList2PyList, etc), but I'd like to hear people's opinions first.

Do we really have to choose? If, for example, a NodeList object can act as
a Python sequence then don't we have the best of both worlds? I mean if
you really need a PyList then you can use "map" to generate one.

I would like to think that Python is sufficiently flexible that most of
these choices could be made in a DOM compatible AND Python compatible way.

The downside of doing both is that a Java or C++ implementation of a "raw"
DOM accessed over CORBA or COM would not be compatible -- but we could
write Python wrappers that would make them so.

 Paul Prescod  - ISOGEN Consulting Engineer speaking for only himself

"The Excursion [Sport Utility Vehicle] is so large that it will come
equipped with adjustable pedals to fit smaller drivers and sensor 
devices that warn the driver when he or she is about to back into a
Toyota or some other object." -- Dallas Morning News