Where is Source for Node Class?

Bengt Richter bokr at oz.net
Mon Jul 1 18:08:56 EDT 2002


On Mon, 1 Jul 2002 14:18:34 -0700, "Harvey Frey" <hsfrey at earthlink.net> wrote:

>     I'm trying to convert a C program which makes extensive use of pointers
> and lists. I assume that dictionaries would be the corresponding python
> method, but I'd like to see an example.
>
>     I see that minidom uses a node class, apparently subclassed from a node
> class in xml.dom.
> I searched through the other .py files in xml/dom, but I can't find the
> original node class that minidom is importing.
>
Is class Node in
    <your disk location>\Python22\Lib\xml\dom\__init__.py 
what you are looking for?

Re importing and Hierarchical module names, 

    http://www.python.org/doc/current/ref/import.html#l2h-359

may help.

>     I am a rank beginner in python, so don't hesitate to mention obvious
> blunders and misunderstandings.
>
That one wasn't so obvious ;-)

Regards,
Bengt Richter



More information about the Python-list mailing list