"M.E.Farmer" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED]
> Just a warning! > Threads and newbies don't mix well, > many pitfalls and hard to find bugs await you. > I would avoid using threads if at all possible. Indeed :). But how will i learn using threads if i avoid using them :) ?? > Now we have all that over lets see some code. > > py> import threading > py> class Test(threading.Thread): > ... def run(self): > ... x = 0 > ... while x < 10: > ... print x > ... x += 1 > ... print " Ending" > Use it like this: > py> Test().start() Your example is interristing...somehow this is not exactly what i want to realise. I have exposed the problem in an earlier reply... Thank you all. Yacine Chaouche -- France. -- http://mail.python.org/mailman/listinfo/python-list