I would suggest using functools.partial like this from functools import partial class Foo(object): #... red = partial(color='red')
-- http://mail.python.org/mailman/listinfo/python-list
I would suggest using functools.partial like this from functools import partial class Foo(object): #... red = partial(color='red')
-- http://mail.python.org/mailman/listinfo/python-list