thread stomp?

D'Arcy J.M. Cain darcy at druid.net
Mon May 12 16:17:45 EDT 2008


On Mon, 12 May 2008 20:00:52 GMT
pyn3wb <pyn3wb at pyn3wb.com> wrote:
> class1 (threading.Thread):
                           ^
SyntaxError: invalid syntax

Give us a script that works.  Ideally it should output something that
indicates what the error is.

> 		//run over files

This is not a comment in Python.

> class2 threads seems to start prior to class1 threads done; class2 
> results depend on class1 finish first

What are you trying to do?  If all you care about is making one thread
depend on another finishing, why make two threads?  Just have one
thread do one thing and then do the other.

Not every problem is a threading problem.

-- 
D'Arcy J.M. Cain <darcy at druid.net>         |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.



More information about the Python-list mailing list