g Object (Flask)

g is Flask's 'global' namespace object for stashing data during a single request, such as the current user or a database connection. Despite the name it is…