Code generator and visitor pattern

Paul Rubin no.email at nospam.invalid
Thu Jul 15 23:51:05 EDT 2010


Karsten Wutzke <kwutzke at web.de> writes:
> Since Python isn't stringly typed, single-dispatch isn't available per
> se. So is the "double-dispatch" Visitor pattern, which is usually used
> in OO systems to implement code generators. So, what is the de facto
> method in Python to handle source code generation?

A minute of web surfing found this:

http://chris-lamb.co.uk/2006/12/08/visitor-pattern-in-python/



More information about the Python-list mailing list