use threading without classes

2005-08-31 Thread billiejoex
Hi all. Hi would like to use two threads in a program but all the examples I found on the net use oop programming that I doesn't love too much. :-) Can you code me a short example in wich two different functions are executed at the same time, plz? Thank you all. --

Re: use threading without classes

2005-08-31 Thread Harlin Seritt
Is there any reason why you wouldn't want to do this using the the threading class? To each his own I suppose. You can try the following though you'll at least need to use functions: import time import thread def myfunction(string,sleeptime,*args): while 1: print string

Re: use threading without classes

2005-08-31 Thread Peter Hansen
billiejoex wrote: Hi all. Hi would like to use two threads in a program but all the examples I found on the net use oop programming that I doesn't love too much. :-) Can you code me a short example in wich two different functions are executed at the same time, plz? import time from

Re: use threading without classes

2005-08-31 Thread billiejoex
Thank you for your helping. -- http://mail.python.org/mailman/listinfo/python-list