Browser front-end, python back-end

Ian Bicking ianb at colorstudy.com
Tue Jan 28 14:02:55 EST 2003


On Tue, 2003-01-28 at 12:54, Eric Mattes wrote:
> My worries about using BaseHTTPServer come from the fact that when I run
> 'serve_forever()', I need to use the task manager to kill the program. Is
> there some way around that?

Sure...

try:
    server.serve_forever()
except SystemExit:
    pass

  Ian






More information about the Python-list mailing list