scipy/weave/ast_tools.py
def harvest_variables(ast_list):
    """ Retrieve all the variables that need to be defined.
    """
    variables = []
    if issequence(ast_list):
        found,data = match(name_pattern,ast_list)
        if found:
            variables.append(data['var'])
        for item in ast_list:
            if issequence(item):
                variables.extend(harvest_variables(item))
    variables = remove_duplicates(variables)
    variables = remove_reserved_names(variables)
    return variables
 Retrieve all the variables that need to be defined.
    
Retrieve all the variables that need to be defined.
Retrieve all the variables that need to be defined .
def harvest_variables(ast_list):
    variables = []
    if issequence(ast_list):
        found,data = match(name_pattern,ast_list)
        if found:
            variables.append(data['var'])
        for item in ast_list:
            if issequence(item):
                variables.extend(harvest_variables(item))
    variables = remove_duplicates(variables)
    variables = remove_reserved_names(variables)
    return variables
def harvest_variables ( ast_list ) : variables = [ ] if issequence ( ast_list ) : found , data = match ( name_pattern , ast_list ) if found : variables . append ( data [ 'var' ] ) for item in ast_list : if issequence ( item ) : variables . extend ( harvest_variables ( item ) ) variables = remove_duplicates ( variables ) variables = remove_reserved_names ( variables ) return variables
Retrieve all the variables that need to be defined.
Retrieve all the variables that need to be defined .
""" Retrieve all the variables that need to be defined.
    """
ast_list