Automated code generation

Simon Burton simonb at webone.com.au
Sat Sep 6 19:55:25 EDT 2003


My classes often have a __str__/__repr__ that generates a
bit of python code that when eval'd will reproduce (a clone of) the instance.

Simon.

On Fri, 05 Sep 2003 18:30:19 +0200, Max M wrote:

...
> Does anybody have any experience using Python and automated code 
> generation where it actually make sense?
> 
> Or os it useless in a language as dynamic as Python?
> 
> 
> regards max M





More information about the Python-list mailing list