Dave Benjamin wrote:
I think you meant to write something like this:
def attrsetter(obj, name, value): def _return_func(): return setattr(obj, name, value) return _return_func
Sure did. Sorry.
You guys have been very helpful!
While on the subject, is there an equivalent for "methodcaller"?
ie. if I want to bind a function which calls a specific method of an object with a specific parameter?
-- http://mail.python.org/mailman/listinfo/python-list