Oneliners?
Fredrik Lundh
fredrik at pythonware.com
Thu Jul 15 07:20:41 EDT 1999
Thomas S. Strinnhed <thstr at serop.abb.se> wrote:
> I heard there was a webserver in one line of Perl,
> does Python match that (or two or three...)?
how about:
from asyncHTTPServer import *; HTTPServer(80, FileSource("/web")); mainloop()
(one line, three statements)
writing the asyncHTTPServer module is left as an exercise
(or you can wait for my Python/Tkinter book...)
</F>
More information about the Python-list
mailing list