Serve_forever??

A[r]TA arta at x-stream.nl
Mon May 15 13:03:59 EDT 2000


Hello everybody,

Why doesn't this work??

    from SocketServer import *

    class request:
        print 'blah'

    TCPServer(('127.0.0.1' , 80), request)
    TCPServer.serve_forever()

    Traceback (innermost last):
      File "<string>", line 1, in ?
      File "C:\Program Files\Python\test.py", line 7, in ?
        TCPServer.serve_forever()
    TypeError: unbound method must be called with class instance 1st
argument

I don't get it. It must be something simple, but can't figure out what.
Plz, help me

Thnx,

A[r]TA

--
We shall not cease from exploration, and the end of all our exploring will
be to arrive where we started and know the place for the first time.
- T. S. Eliot










More information about the Python-list mailing list