I was trying out how well reinteract supports threading and noticed the following behaviour for this small code snippet:
from threading import Thread
class TestThread(Thread):
def run(self):
print "foo"
t = TestThread()
t.start()
After some time this results in the following errors on the console:
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap
self.run()
File "<syntax-tree>", line 2, in run
File "/home/languitar/Desktop/reinteract/lib/reinteract/stdout_capture.py", line 17, in write
self.current.write(str)
File "/home/languitar/Desktop/reinteract/lib/reinteract/stdout_capture.py", line 17, in write
self.current.write(str)
....
File "/home/languitar/Desktop/reinteract/lib/reinteract/stdout_capture.py", line 17, in write
self.current.write(str)
File "/home/languitar/Desktop/reinteract/lib/reinteract/stdout_capture.py", line 17, in write
self.current.write(str)
RuntimeError: maximum recursion depth exceeded
I'm not really sure, how Reinteract should react on such a situation but this error message seems to be wrong, nevertheless.