idiom for constructor?

tracyshaun tracy at reinventnow.com
Mon Jun 6 20:38:09 CEST 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