scipy/weave/ast_tools.py
def translate_symbols(ast_tuple):
    """ Translate numeric grammar symbols in an ast_tuple descriptive names.

        This simply traverses the tree converting any integer value to values
        found in symbol.sym_name or token.tok_name.
    """
    new_list = []
    for item in ast_tuple:
        if isinstance(item, int):
            new_list.append(int_to_symbol(item))
        elif issequence(item):
            new_list.append(translate_symbols(item))
        else:
            new_list.append(item)
    if isinstance(ast_tuple, tuple):
        return tuple(new_list)
    else:
        return new_list
 Translate numeric grammar symbols in an ast_tuple descriptive names.

        This simply traverses the tree converting any integer value to values
        found in symbol.sym_name or token.tok_name.
    
Translate numeric grammar symbols in an ast_tuple descriptive names.
This simply traverses the tree converting any integer value to values
found in symbol.sym_name or token.tok_name.
Translate numeric grammar symbols in an ast_tuple descriptive names . This simply traverses the tree converting any integer value to values found in symbol . sym_name or token . tok_name .
def translate_symbols(ast_tuple):
    new_list = []
    for item in ast_tuple:
        if isinstance(item, int):
            new_list.append(int_to_symbol(item))
        elif issequence(item):
            new_list.append(translate_symbols(item))
        else:
            new_list.append(item)
    if isinstance(ast_tuple, tuple):
        return tuple(new_list)
    else:
        return new_list
def translate_symbols ( ast_tuple ) : new_list = [ ] for item in ast_tuple : if isinstance ( item , int ) : new_list . append ( int_to_symbol ( item ) ) elif issequence ( item ) : new_list . append ( translate_symbols ( item ) ) else : new_list . append ( item ) if isinstance ( ast_tuple , tuple ) : return tuple ( new_list ) else : return new_list
Translate numeric grammar symbols in an ast_tuple descriptive names.
Translate numeric grammar symbols in an ast_tuple descriptive names .
""" Translate numeric grammar symbols in an ast_tuple descriptive names.

        This simply traverses the tree converting any integer value to values
        found in symbol.sym_name or token.tok_name.
    """
ast_tuple