I am using threading.py and I have the following code:
import threading class MyClass(threading.Thread): def __init__(self,par1,par2): threading.Thread.__init__(self) self.var1 = par1 self.var2 = par2 def run(self):
And I get the following error:
18:48:08 57 SE myClassVar = MyClass("something",0.0) 18:48:08 58 SE File "C:\Python24\Lib\threading.py", line 378, in `__init__` 18:48:08 59 SE assert group is None, "group argument must be None for now" 18:48:08 60 SE AssertionError: group argument must be None for now
I kinda like new using python, this is the first time I use threading ...
What is the mistake here?
Thanks,
Jonathan
source share