1    def threadInorder(self, start):
2        ptr = start
3        while True:
4            q = None
5            while ptr: #Traverse left branch
6                q = ptr
7                ptr = ptr.left
8            if q is not None:
9                print(q.info, end = " ")
10               ptr = q.right
11               while q.rthread and ptr:
12                   print(ptr.info, end = " ")
13                   q = ptr
14                   ptr = ptr.right
15           if q is None:
16              break