class_docstr: 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 :data:`g` proxy.
  
  .. describe:: 'key' in g
  
      Check whether an attribute is present.
  
      .. versionadded:: 0.10
  
  .. describe:: iter(g)
  
      Return an iterator over the attribute names.
  
      .. versionadded:: 0.10
docstr: Get an attribute by name, or a default value. Like
  :meth:`dict.get`.
  
  :param name: Name of attribute to get.
  :param default: Value to return if the attribute is not present.
  
  .. versionadded:: 0.10
docstr_tok: ["Get","an","attribute","by","name",",","or","a","default","value",".","Like",":","meth",":","`","dict.get","`",".",":","param","name",":","Name","of","attribute","to","get",".",":","param","default",":","Value","to","return","if","the","attribute","is","not","present",".","..","versionadded",":",":","0.10"]
code: def get(self, name: str, default: t.Any | None = None) -> t.Any:
      """Get an attribute by name, or a default value. Like
      :meth:`dict.get`.
  
      :param name: Name of attribute to get.
      :param default: Value to return if the attribute is not present.
  
      .. versionadded:: 0.10
      """
      return self.__dict__.get(name, default)
  
imports: from __future__ import annotations
  import contextvars
  import sys
  import typing
  from functools import update_wrapper
  from types import TracebackType
  from werkzeug.exceptions import HTTPException
  from .None import typing
  from .globals import _cv_app
  from .globals import _cv_request
  from .signals import appcontext_popped
  from .signals import appcontext_pushed
label_desc: Use image node_id 4 for calling the _AppCtxGlobals obj's underlying member method code with example usage: obj.get(name, default) and returns: self