latyas
2015-07-14 11:03:30 +08:00
from tornado.web import Application, RequestHandler
from tornado.ioloop import IOLoop
from functools import partial
class FuckinHandler(RequestHandler):
def get(self):
func = partial(Handler.get.im_func, self)
func()
class Handler(RequestHandler):
def get(self):
self.write('test')
self.finish()
WEBSERVER_PORT = 10000
application = Application([
(r'/', FuckinHandler),
])
application.listen(WEBSERVER_PORT)
IOLoop.instance().start()