parameters: (self)
return_statement: return modName
docstring: @rtype:  str
          @return: Module name, as used in labels.
  
          @warning: Names are B{NOT} guaranteed to be unique.
  
              If you need unique identification for a loaded module,
              use the base address instead.
  
          @see: L{get_label}
docstring_summary: @rtype:  str
          @return: Module name, as used in labels.
docstring_tokens: @rtype : str @return : Module name as used in labels .
function: def get_name(self):
          """
          @rtype:  str
          @return: Module name, as used in labels.
  
          @warning: Names are B{NOT} guaranteed to be unique.
  
              If you need unique identification for a loaded module,
              use the base address instead.
  
          @see: L{get_label}
          """
          pathname = self.get_filename()
          if pathname:
              modName = self.__filename_to_modname(pathname)
              if isinstance(modName, compat.unicode):
                  try:
                      modName = modName.encode('cp1252')
                  except UnicodeEncodeError:
                      e = sys.exc_info()[1]
                      warnings.warn(str(e))
          else:
              modName = "0x%x" % self.get_base()
          return modName
function_tokens: def get_name ( self ) : pathname = self . get_filename ( ) if pathname : modName = self . __filename_to_modname ( pathname ) if isinstance ( modName , compat . unicode ) : try : modName = modName . encode ( 'cp1252' ) except UnicodeEncodeError : e = sys . exc_info ( ) [ 1 ] warnings . warn ( str ( e ) ) else : modName = "0x%x" % self . get_base ( ) return modName