Code generator and visitor pattern

Matt McCredie mccredie at gmail.com
Thu Jul 15 15:43:06 EDT 2010


Karsten Wutzke <kwutzke <at> web.de> writes:

> So, what is the de facto method in Python to handle source code generation?


Take a look at the NodeVisitor class in the ast module in python 2.6+. 
The visitor pattern is implemented in the python standard library.

Matt




More information about the Python-list mailing list