Decorators in Python
<p>I am just learning python, and I am currently playing with Tornado framework. I see this class:</p>

<pre><code>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()
</code></pre>

<p>I am having trouble grasping what the decorator does there (@tornado.web.asynchronous). Does it overwrite that function?</p>

<p>You can see the full source at <a href="https://github.com/facebook/tornado/blob/master/demos/chat/chatdemo.py" rel="nofollow">https://github.com/facebook/tornado/blob/master/demos/chat/chatdemo.py</a></p>
