idiom for constructor?

tracyshaun tracy at reinventnow.com
Mon Jun 6 14:38:09 EDT 2005


And you probably should add:

    ...
    def __init__(self, *args):
        assert len(args) == len(self.__slots__)
        ...

--T




More information about the Python-list mailing list