Getting in to metaprogramming
Hendrik van Rooyen
mail at microcorp.co.za
Thu Nov 27 23:19:22 EST 2008
"Michele Simionato" <mico at mail.com> wrote:
>The namedtuple recipe by Raymond Hettinger (http://
>code.activestate.com/recipes/500261)
>is an interesting example of code generation. My own decorator module
>use a similar
>trick. Here code generation (plus eval/exec) is needed since you need
>control on
>the signature of a function. If we could change the signature of a
>function (I think
>this is possible in Python 3.0, I have to check) then we would not
>need code
>generation.
Right that is a definite counterexample.
van Rooyen's folly is officially dead.
It is stillborn.
It has snuffed it.
It lives no more.
Thanks.
- Hendrik
More information about the Python-list
mailing list