Skip to content

Instantly share code, notes, and snippets.

@hunt3ri
Created November 8, 2012 22:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hunt3ri/4042104 to your computer and use it in GitHub Desktop.
Save hunt3ri/4042104 to your computer and use it in GitHub Desktop.
Tornado hello world
import tornado.ioloop
import tornado.web
class MainHandler(tornado.web.RequestHandler):
def get(self):
self.write("Hello, Python3")
application = tornado.web.Application([
(r"/", MainHandler),
])
if __name__ == "__main__":
application.listen(8888)
tornado.ioloop.IOLoop.instance().start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment