@staticmethod
    def construct(generator, subtopic):
        type = subtopic[3]
        if type not in Item.constructors:
            raise LookupError(type)   # perhaps customise this exception?

        return Item.constructors[type](generator, subtopic)
Return value of the 'to' attribute.
dataset/ETHPy150Open dossier/dossier.models/dossier/models/report.py/Item.construct--crossover with--dataset/ETHPy150Open CouchPotato/CouchPotatoServer/libs/xmpp/protocol.py/Protocol.getTo