scipy/weave/ast_tools.py
def ast_to_string(ast_seq):
    """* Traverse an ast tree sequence, printing out all leaf nodes.

         This effectively rebuilds the expression the tree was built
         from.  I guess its probably missing whitespace.  How bout
         indent stuff and new lines?  Haven't checked this since we're
         currently only dealing with simple expressions.
    *"""
    output = ''
    for item in ast_seq:
        if isinstance(item, str):
            output = output + item
        elif issequence(item):
            output = output + ast_to_string(item)
    return output
* Traverse an ast tree sequence, printing out all leaf nodes.

         This effectively rebuilds the expression the tree was built
         from.  I guess its probably missing whitespace.  How bout
         indent stuff and new lines?  Haven't checked this since we're
         currently only dealing with simple expressions.
    *
Traverse an ast tree sequence, printing out all leaf nodes.
This effectively rebuilds the expression the tree was built
from.  I guess its probably missing whitespace.  How bout
indent stuff and new lines.  Haven't checked this since we're
currently only dealing with simple expressions.
Traverse an ast tree sequence printing out all leaf nodes . This effectively rebuilds the expression the tree was built from . I guess its probably missing whitespace . How bout indent stuff and new lines . Haven ' t checked this since we ' re currently only dealing with simple expressions .
def ast_to_string(ast_seq):
    output = ''
    for item in ast_seq:
        if isinstance(item, str):
            output = output + item
        elif issequence(item):
            output = output + ast_to_string(item)
    return output
def ast_to_string ( ast_seq ) : output = '' for item in ast_seq : if isinstance ( item , str ) : output = output + item elif issequence ( item ) : output = output + ast_to_string ( item ) return output
Traverse an ast tree sequence, printing out all leaf nodes.
Traverse an ast tree sequence printing out all leaf nodes .
"""* Traverse an ast tree sequence, printing out all leaf nodes.

         This effectively rebuilds the expression the tree was built
         from.  I guess its probably missing whitespace.  How bout
         indent stuff and new lines?  Haven't checked this since we're
         currently only dealing with simple expressions.
    *"""
ast_seq