What's the difference between current_app and g context variable?
<p>Both <code>current_app</code> and <code>g</code> are application context variables, so they are loaded and unloaded with each request, so anything data stored on them will only be available within the same request.</p>

<p>The only difference I can see is that <code>g</code> starts empty at the beginning of each request, while <code>current_app</code> starts with some attributes (like <code>config</code>) that are copied from the application object. But that wouldn't justify having <code>g</code> object at all, since one could just as easily store new information on <code>current_app</code>.</p>

<p>What's the difference that I don't see?</p>