parameters: (self, gv)
docstring: Look up the registered type for global value *gv*.
docstring_summary: Look up the registered type for global value *gv*.
docstring_tokens: Look up the registered type for global value * gv * .
function: def _lookup_global(self, gv):
          """
          Look up the registered type for global value *gv*.
          """
          try:
              gv = weakref.ref(gv)
          except TypeError:
              pass
          try:
              return self._globals.get(gv, None)
          except TypeError:
              # Unhashable type
              return None
function_tokens: def _lookup_global ( self , gv ) : try : gv = weakref . ref ( gv ) except TypeError : pass try : return self . _globals . get ( gv , None ) except TypeError : # Unhashable type return None