(self, name)
return sym
Lookup a *name* in the table.

        Returns a *Symbol* instance.
Lookup a *name* in the table.
Lookup a * name * in the table .
def lookup(self, name):
        """Lookup a *name* in the table.

        Returns a *Symbol* instance.
        """
        sym = self._symbols.get(name)
        if sym is None:
            flags = self._table.symbols[name]
            namespaces = self.__check_children(name)
            module_scope = (self._table.name == "top")
            sym = self._symbols[name] = Symbol(name, flags, namespaces,
                                               module_scope=module_scope)
        return sym
def lookup ( self , name ) : sym = self . _symbols . get ( name ) if sym is None : flags = self . _table . symbols [ name ] namespaces = self . __check_children ( name ) module_scope = ( self . _table . name == "top" ) sym = self . _symbols [ name ] = Symbol ( name , flags , namespaces , module_scope = module_scope ) return sym