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 and remove an attribute by name. Like :meth:`dict.pop`.
  
  :param name: Name of attribute to pop.
  :param default: Value to return if the attribute is not present,
      instead of raising a ``KeyError``.
  
  .. versionadded:: 0.11
docstr_tok: ["Get","and","remove","an","attribute","by","name",".","Like",":","meth",":","`","dict.pop","`",".",":","param","name",":","Name","of","attribute","to","pop",".",":","param","default",":","Value","to","return","if","the","attribute","is","not","present",",","instead","of","raising","a","``","KeyError","``",".","..","versionadded",":",":","0.11"]
code: def pop(self, name: str, default: t.Any = _sentinel) -> t.Any:
      """Get and remove an attribute by name. Like :meth:`dict.pop`.
  
      :param name: Name of attribute to pop.
      :param default: Value to return if the attribute is not present,
          instead of raising a ``KeyError``.
  
      .. versionadded:: 0.11
      """
      if default is _sentinel:
          return self.__dict__.pop(name)
      else:
          return self.__dict__.pop(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 5 for calling the _AppCtxGlobals obj's underlying member method code with example usage: obj.pop(name, default) and returns: self, self