why does the following with Queue, q.put('\x02', True) not put it in the queue?

Gabriel Rossetti gabriel.rossetti at mydeskfriend.com
Fri Apr 25 10:38:48 EDT 2008


Hello,

I'm having some trouble with the Queue class, for some reason, if I do 
this (ch == ) :

q = Queue.Queue(0)
repr(ch)
q.put(ch, True)
len(q.queue)

where the output is :

'\x02'
0

why isn't the character/string being put it in the queue?

Thank you,
Gabriel



More information about the Python-list mailing list