Getting in to metaprogramming

alex23 wuwei23 at gmail.com
Thu Nov 27 22:35:50 EST 2008


On Nov 27, 8:55 am, "Hendrik van Rooyen" <m... at microcorp.co.za> wrote:
> Then another thing - it strikes me that any problem that can be solved
> by metaprogramming, can be solved by putting similar code into a class
> and instanciating an instance.
>
> Does anybody know if this is true?
>
> If it is, it limits the usefulness of metaprogramming to the creation
> of "stored procedures" for "later execution".

Take a look at Pythoscope, which generates unit test stubs for a given
piece of Python code:

http://pythoscope.org/
http://pythoscope.org/test-generator



More information about the Python-list mailing list