def __iter__(self):
        topic = self
        while True:
            yield topic
            if topic == RootTopic:
                break
            topic = topic._parent
dataset/ETHPy150Open foxdog-studios/pyddp/ddp/pubsub/topic.py/Topic.__iter__/original