Why? Sometimes, we need to share files from a machine ... its very useful as its makes current directory available as downloadable links...
import SimpleHTTPServerimport SocketServerPORT = 8000Handler = SimpleHTTPServer.SimpleHTTPRequestHandlerhttpd = SocketServer.TCPServer(("", PORT), Handler)print "serving at port", PORThttpd.serve_forever()Or,
python -m SimpleHTTPServer 8000