g = LocalProxy(lambda: _request_ctx_stack.top.g) when I write "g.db" before request, it proxy to the top.g. Is this understanding right? -- regards chenge
> when I write "g.db" before request, it proxy to the top.g. Is this > understanding right? Correct. Each time you access g.db the function is called to retrieve the db attribute of the current top request context from the stack.