Erik Max Francis wrote: > Something like:: > > method = ['fun', ...] > for method in methods: > setattr(MyClass, method, lambda *x: Node(method, *x))
Err, that first line was supposed to be methods = ... -- Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/ San Jose, CA, USA && 37 20 N 121 53 W && AIM, Y!M erikmaxfrancis I like young girls. Their stories are shorter. -- Thomas McGuane -- http://mail.python.org/mailman/listinfo/python-list