Skip to content

deprecated and remove RequestContext.g, it is AppContext.g #3898

@laggardkernel

Description

@laggardkernel

g has been stored on AppContext since AppContext's introduction in 0.9. We still have a property g attached on RequestContext. Is there any reason to keep it? Why not switch to current_app.g, or just the global g?

laggardkernel@a10005b

Environment

  • Python version: 3.8.7
  • Flask version: 1.1.2
  • Werkzeug version: 1.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions