# how to find out the OO hierachy via the documentation?

Discussion in 'Python' started by Leo, Aug 29, 2003.

1. ### LeoGuest

hi all

newbie question: how do i find out the OO hierarchy of a class in the python
docu?

the story: i want do play with the web server classes. so the first task
would be a basic server with SimpleHTTPServer. in the docu i've read about
the test() function but i couldn't find this function in the
SimpleHTTPServer class and even not in the BaseHTTPServer class which might
be the ancestor.

so now i'd like to walk through the OO hierarchy of SimpleHTTPServer...

any help is appreciated!

cheers, leo

Leo, Aug 29, 2003

2. ### Andrew BennettsGuest

On Fri, Aug 29, 2003 at 03:48:24PM +1000, Leo wrote:
> hi all
>
> newbie question: how do i find out the OO hierarchy of a class in the python
> docu?
>
> the story: i want do play with the web server classes. so the first task
> would be a basic server with SimpleHTTPServer. in the docu i've read about
> the test() function but i couldn't find this function in the
> SimpleHTTPServer class and even not in the BaseHTTPServer class which might
> be the ancestor.
>
> so now i'd like to walk through the OO hierarchy of SimpleHTTPServer...

The epydoc project (http://epydoc.sf.net/) has generated API docs for the
Python 2.2 standard library with this sort of info in it, e.g.:
http://epydoc.sourceforge.net/stdlib/public/SimpleHTTPServer.SimpleHTTPRequestHandler-class.html

-Andrew.

Andrew Bennetts, Aug 29, 2003

3. ### Peter OttenGuest

Leo wrote:

> newbie question: how do i find out the OO hierarchy of a class in the
> python docu?

You can use

pydoc -p 9999

or on Windows perhaps

python c:\path\to\python\pydoc.py -p 9999

on the command line and then access documentation generated on the fly with

http://localhost:9999/SimpleHTTPServer.html

Peter

Peter Otten, Aug 29, 2003
4. ### Michele SimionatoGuest

"Leo" <> wrote in message news:<bimpeg$ior$>...
> hi all
>
> newbie question: how do i find out the OO hierarchy of a class in the python
> docu?
>
> the story: i want do play with the web server classes. so the first task
> would be a basic server with SimpleHTTPServer. in the docu i've read about
> the test() function but i couldn't find this function in the
> SimpleHTTPServer class and even not in the BaseHTTPServer class which might
> be the ancestor.
>
> so now i'd like to walk through the OO hierarchy of SimpleHTTPServer...
>
> any help is appreciated!
>
> cheers, leo

help(SimpleHTTPServer)

Michele Simionato, Ph. D.

http://www.phyast.pitt.edu/~micheles
--- Currently looking for a job ---

Michele Simionato, Aug 29, 2003