Re: error: argument after ** must be a dictionary
- From: "Fredrik Lundh" <fredrik@xxxxxxxxxxxxxx>
- Date: Tue, 28 Feb 2006 15:40:14 +0100
"abcd" <codecraig@xxxxxxxxx> wrote:
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
I'm getting
X and Y: 4 9
are you sure you posted the right code ?
where's the rest of the traceback, btw ?
</F>
.
- References:
- Prev by Date: error: argument after ** must be a dictionary
- Next by Date: Get my airlines boarding pass
- Previous by thread: error: argument after ** must be a dictionary
- Next by thread: Get my airlines boarding pass
- Index(es):
Relevant Pages
|