Why is it that when I put a tuple into a queue like this:
myqueue.put(('Thread Started'))
And I call .get() like this:
item = myqueue.get()
print item
It prints this:
('T', 'h', 'r', 'e', 'a', 'd', ' ', 'S', 't', 'a', 'r', 't', 'e', 'd')
What is the reason for this behavior? How can I get my original tuple back?
That’s not a tuple, that’s a string in a pair of parentheses. This is a tuple: