On Fri, Apr 25, 2008 at 11:11 AM, Gabriel Rossetti
<[EMAIL PROTECTED]> wrote:
> yes, if you do it that way (s = '\x02') it works, but I read the data from
> a file, and I that way it doesn't work
It does work (using Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45)
[MSC v.1310 32 bit (Intel)]
Arimaz SA
Av. du 24 Janvier 11
Ateliers de la Ville de Renens, Atelier 5
1020 Renens, Switzerland
www.mydeskfriend.com
Mob: +41-(0)79-539-0069
Tel: +41-(0)21-566-7343
sturlamolden wrote:
On Apr 25, 4:38 pm, Gabriel Rossetti
<[EMAIL PROTECTED]> wrote:
Hello,
I'm having some trouble with t
On Apr 25, 4:38 pm, Gabriel Rossetti
<[EMAIL PROTECTED]> 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'
>>>
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
--
http://mail.python.org/mail