error: argument after ** must be a dictionary
- From: "abcd" <codecraig@xxxxxxxxx>
- Date: 28 Feb 2006 06:23:54 -0800
I have class like this...
import threading
class MyBlah(object):
def __init__(self):
self.makeThread(self.blah, (4,9))
def blah(self, x, y):
print "X and Y:", x, y
def makeThread(self, func, args=(), kwargs={}):
threading.Thread(target=self.blah, args=args,
kwargs=kwargs).start()
When I do...
b = MyBlah()
I am getting this error:
TypeError: MyBlah object argument after ** must be a dictionary
What am I missing?
.
- Follow-Ups:
- Re: error: argument after ** must be a dictionary
- From: Fredrik Lundh
- Re: error: argument after ** must be a dictionary
- Prev by Date: Re: Python and Flash
- Next by Date: Re: error: argument after ** must be a dictionary
- Previous by thread: comple list slices
- Next by thread: Re: error: argument after ** must be a dictionary
- Index(es):
Relevant Pages
|