> 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__
(
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
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
>
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
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_