class _AppCtxGlobals:
A plain object. Used as a namespace for storing data during an application context.
Creating an app context automatically creates this object, which is
made available as the g
proxy.
Method | get |
Get an attribute by name, or a default value. Like dict.get . |
Method | pop |
Get and remove an attribute by name. Like dict.pop . |
Method | setdefault |
Get the value of an attribute if it is present, otherwise set and return a default value. Like dict.setdefault . |
Method | __contains__ |
Undocumented |
Method | __delattr__ |
Undocumented |
Method | __getattr__ |
Undocumented |
Method | __iter__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | __setattr__ |
Undocumented |
Get an attribute by name, or a default value. Like
dict.get
.
Parameters | |
name:str | Name of attribute to get. |
default:t.Optional[ | Value to return if the attribute is not present. |
Returns | |
t.Any | Undocumented |
Get and remove an attribute by name. Like dict.pop
.
Parameters | |
name:str | Name of attribute to pop. |
default:t.Any | Value to return if the attribute is not present, instead of raising a KeyError. |
Returns | |
t.Any | Undocumented |
Get the value of an attribute if it is present, otherwise
set and return a default value. Like dict.setdefault
.
Parameters | |
name:str | Name of attribute to get. |
default:t.Any | Value to set and return if the attribute is not present. |
Returns | |
t.Any | Undocumented |