On Nov 27, 5:41 am, "Hendrik van Rooyen" <[EMAIL PROTECTED]> wrote: > Given that, can anybody think of an example that you could not do with > a class? (excepting the "stored procedure" aspect)
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. -- http://mail.python.org/mailman/listinfo/python-list