A Simple Server to Capture Single Short Requests
Aloysio Figueiredo
xpythonist at yahoo.com.br
Tue Mar 2 12:55:22 EST 2004
--- Craig Edgmon <cedgmon at shaw.ca> escreveu:
> I am working through Steve Holdens book on Python
> Web Development and
> this may seem like an obvious question, but my error
> states that
> MyRequestHandler is not defined. Any ideas on this?
This looks like an indentation error...
You should place
myServer=SocketServer.TCPServer(('',8080),MyRequestHandler)
myServer.handle_request()
in the 1st column, since it's not related to the class
definition.
______________________________________________________________________
Yahoo! Mail - O melhor e-mail do Brasil! Abra sua conta agora:
http://br.yahoo.com/info/mail.html
More information about the Python-list
mailing list