(self)
Return the type of the symbol table.

        The values retuned are 'class', 'module' and
        'function'.
Return the type of the symbol table.
Return the type of the symbol table .
def get_type(self):
        """Return the type of the symbol table.

        The values retuned are 'class', 'module' and
        'function'.
        """
        if self._table.type == _symtable.TYPE_MODULE:
            return "module"
        if self._table.type == _symtable.TYPE_FUNCTION:
            return "function"
        if self._table.type == _symtable.TYPE_CLASS:
            return "class"
        assert self._table.type in (1, 2, 3), \
               "unexpected type: {0}".format(self._table.type)
def get_type ( self ) : if self . _table . type == _symtable . TYPE_MODULE : return "module" if self . _table . type == _symtable . TYPE_FUNCTION : return "function" if self . _table . type == _symtable . TYPE_CLASS : return "class" assert self . _table . type in ( 1 , 2 , 3 ) , "unexpected type: {0}" . format ( self . _table . type )