HTTPServer classes

Drazen Gemic dgemic at nospam.net
Thu May 1 20:04:02 EDT 2003


> Note: you should really not do just "httpLoop()" since that will
> execute during import, even if the module is to be imported from
> another module.  Instead, use the __name__ == '__main__' convention
> above to ensure that it runs the code only when you are executing
> the script from the command line.

It is not a module, it is just an example to show how does
BaseHTTPServer  and SimpleHTTPServer work.


                        DG





More information about the Python-list mailing list