def __init__(self, pyclass, ofwhat, pname=None, inorder=False, inline=False,<EOL>mutable=True, **kw):
ComplexType.__init__(self, pyclass, ofwhat, pname=pname, <EOL>inorder=inorder, inline=inline, mutable=mutable, <EOL>**kw<EOL>)<EOL>whats = [(what.nspname,what.pname) for what in self.ofwhat]<EOL>for idx in range(len(self.ofwhat)):<EOL><INDENT>what = self.ofwhat[idx]<EOL>key = (what.nspname,what.pname)<EOL>if not isinstance(what, AnyElement) and what.maxOccurs > <NUM_LIT:1>:<EOL><INDENT>raise TypeError('<STR_LIT>')<EOL><DEDENT>if key in whats[idx+<NUM_LIT:1>:]:<EOL><INDENT>raise TypeError('<STR_LIT>')<EOL><DEDENT><DEDENT>
pyclass -- the Python class to hold the fields
        ofwhat -- a list of fields to be in the struct
        inorder -- fields must be in exact order or not
        inline -- don't href/id when serializing
        mutable -- object could change between multiple serializations