How about just doing this:

class Foo(object):
    __slots__ = ('a','b','c','d')
    def __init__(self, *args):
        for (name, arg) in zip(self.__slots__, args):
            setattr(self, name, arg)

--T

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to