I am just learning python, and I am currently playing with Tornado framework. I see this class:
class AuthHandler(BaseHandler, tornado.auth.GoogleMixin):
@tornado.web.asynchronous
def get(self):
if self.get_argument("openid.mode", None):
self.get_authenticated_user(self.async_callback(self._on_auth))
return
self.authenticate_redirect()
I am having trouble grasping what the decorator does there (@tornado.web.asynchronous). Does it overwrite that function?
You can see the full source at https://github.com/facebook/tornado/blob/master/demos/chat/chatdemo.py