bruno at modulix wrote:
> abcd wrote:
> 
>>    def makeThread(self, func, args=(), kwargs={}):
>>        threading.Thread(target=self.blah, args=args,
>>kwargs=kwargs).start()
> 
> Shouldn't it be:
> 
> def makeThread(self, func, *args, **kwargs):
>   threading.Thread(target=self.blah,
>                    *args,
>                    **kwargs).start()

No. threading.Thread() doesn't use *args, **kwargs, it uses explicit 
named parameters.

Kent
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to