[Komodo-3-beta] Difference in Threading Behaviour between Komodo 2.5 and 3.0
by Andrew Francis other posts by this author
Jun 28 2004 7:22PM messages near this date
view in the new Beta List Site
[Komodo-3-beta] Knowing which version the bug is resolved for?
|
[Komodo-3-beta] beta bugs available again...
Hello:
This is a fragment of a programme:
class TestTask(AbstractTask,threading.Thread):
def __init__(self, name, dependents, taskId):
super(TestTask,self).__init__(name,dependents,taskId)
self.value = random.Random().randint(1,5)
print self.name + " " + str(self.value)
threading.Thread.__init__(self)
return
When I execute this fragment in Komodo 2.5 in
debugging
and normal execution mode, things run fine.
However in Komodo Beta 1, things run fine in normal
mode. In debugging mode, I get the following error:
Traceback (most recent call last):
File "C:\Program Files\ActiveState Komodo
3.0\python\dbgp\dbgpClient.py", line 1655, in runMain
self.dbg.run(code_ob, locals, locals)
File "C:\Program Files\ActiveState Komodo
3.0\python\dbgp\dbgpClient.py", line 1381, in run
exec cmd in globals, locals
File "C:\lab\June-26-2004\TestDriver3.py", line 129,
in ?
test.TestTwo()
File "C:\lab\June-26-2004\TestDriver3.py", line 112,
in TestTwo
tasks = {'one' : TestTask("one",["two"],"one"),
File "C:\lab\June-26-2004\TestDriver3.py", line 83,
in __init__
threading.Thread.__init__(self)
File "C:\Program Files\ActiveState Komodo
3.0\python\dbgp\dbgpClient.py", line 2964, in __init__
threading.Thread.__init__(self, group, target,
name, args, kwargs)
NameError: global name 'self' is not defined
Perhaps this construct is problematic? However what
would explain the difference in behaviour between the
two versions and in different modes?
Cheeers,
Andrew
__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail
|