thomas lee abkvectorsevencom thought would great could implemented top c layer operates real ast nodes rather pyobject representation nodes im working stuff perform code optimization ast level see tleeastoptimize branch functionality youre describing may wind useful ive got say topic im work right something keep mind cheers armin ronacher wrote hi would like propose new module stdlib python 26 higher ast motivation module pending deprecation compilerast widely used debugging template engines code coverage etc _ast solid module without doubt easier maintain compilerast written python lacking features pretty printing ast traversing idea ast would adding high level functionality easier working ast currently provides features pretty printing ast objects parse function easier alias compile flag operatornode operator symbol mappings eg _astadd methods modify lineno col_offset incrementing copying data existing nodes getting fields nodes dicts iterating child nodes function get docstring ast node node walker yields childnodes recursively nodevistor nodetransformer additionally literate_eval function module safely evaluate python literals string module unittests located pocoo sandbox hg repository httpdevpocooorghgsandboxfiletipastastpy httpdevpocooorghgsandboxfiletipasttest_astpy slightly modified version astpy module python 25 compatibility currently use mako template engine achieve support googles appengine example module nodevisitor repository converts python ast back python source code httpdevpocooorghgsandboxfiletipastcodegenpy regards armin _______________________________________________ pythondev mailing list zvlllneumpythonorg httpmailpythonorgmailmanlistinfopythondev unsubscribe httpmailpythonorgmailmanoptionspythondevtom40vectorsevencom _______________________________________________ pythondev mailing list zvlllneumpythonorg httpmailpythonorgmailmanlistinfopythondev unsubscribe httpmailpythonorgmailmanoptionspythondevpythondev40tangomucom fri 08 aug 2008 142841 1000 pythondev module suggestion ast