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

sturlamolden sturlamolden at yahoo.no
Fri Apr 25 10:45:45 EDT 2008


On Apr 25, 4:38 pm, Gabriel Rossetti
<gabriel.rosse... at mydeskfriend.com> wrote:
> 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)

>>> from Queue import Queue
>>> q = Queue(0)
>>> s = '\x02'
>>> q.put(s,True)
>>> len(q.queue)
1






More information about the Python-list mailing list