def __init__(self, *args):
if len(args) > <NUM_LIT:2>:<EOL><INDENT>raise TypeError("<STR_LIT>" % len(args))<EOL><DEDENT>super(DictList, self).__init__(self)<EOL>self._dict = {}<EOL>if len(args) == <NUM_LIT:1>:<EOL><INDENT>other = args[<NUM_LIT:0>]<EOL>if isinstance(other, DictList):<EOL><INDENT>list.extend(self, other)<EOL>self._dict = other._dict.copy()<EOL><DEDENT>else:<EOL><INDENT>self.extend(other)<EOL><DEDENT><DEDENT>
Instantiate a combined dict and list.

        Parameters
        ----------
        args : iterable
            iterable as single argument to create new DictList from