msg = 'afdssav'
MYQ = deque(msg)
MYPQ.append('asdf')
Here I am trying to create a deque of strings, however when I pop elements or try to read elements from it using Python 2.7 I get char by char instead.
How can I make it such that it would return the strings the same way I insert them?
i.e. I want MYQ[1] to be 'asdf' and MYQ.pop() to return msg.