pkt / splitta

Automatically exported from code.google.com/p/splitta
0 stars 0 forks source link

__str__() method of Doc goes into infinite loop #9

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. try doing "print doc" on any Doc object in the code
2.
3.

What is the expected output? What do you see instead?

Expect it to print the doc.  Instead it goes into an infinite loop.

What version of the product are you using? On what operating system?

Splitta 1.03 running under linux.

Please provide any additional information below.

A possible fix:

    def __str__(self):
        s = []
        curr = self.frag
        while curr:
          s.append(str(curr))
          curr = curr.next
        return '\n'.join(s)

Original issue reported on code.google.com by gold...@google.com on 25 Jul 2011 at 4:47