Re: AssertionError - help me to solve this in a programme with Queue

2009-05-12 Thread maxim
> hi > It did work that way > > File "queue.py", line 15 >     threading.Thread__init__.(self) >                              ^ > SyntaxError: invalid syntax You've wrote right first time "threading.Thread.__init__(slef)", but misprinted in your code "def _int_(self,q)" instead of "def __init__ (

Re: AssertionError - help me to solve this in a programme with Queue

2009-05-12 Thread Diez B. Roggisch
gganesh wrote: > On May 12, 6:34 pm, MRAB wrote: >> gganesh wrote: >> > Hi all, >> > I'm just learning python ,the code below is found in one of the >> > sites ,it produces an error like >> > Traceback (most recent call last): >> > File "queue.py", line 34, in >> > main() >> > File "queue.py", l

Re: AssertionError - help me to solve this in a programme with Queue

2009-05-12 Thread gganesh
On May 12, 6:34 pm, MRAB wrote: > gganesh wrote: > > Hi all, > > I'm just learning python ,the code below is found in one of the > > sites ,it produces an error like > > Traceback (most recent call last): > >   File "queue.py", line 34, in > >     main() > >   File "queue.py", line 28, in main >

Re: AssertionError - help me to solve this in a programme with Queue

2009-05-12 Thread MRAB
gganesh wrote: Hi all, I'm just learning python ,the code below is found in one of the sites ,it produces an error like Traceback (most recent call last): File "queue.py", line 34, in main() File "queue.py", line 28, in main t=MyThread(q) File "/usr/lib/python2.5/threading.py", lin

AssertionError - help me to solve this in a programme with Queue

2009-05-12 Thread gganesh
Hi all, I'm just learning python ,the code below is found in one of the sites ,it produces an error like Traceback (most recent call last): File "queue.py", line 34, in main() File "queue.py", line 28, in main t=MyThread(q) File "/usr/lib/python2.5/threading.py", line 398, in __init_