ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> komodo-beta
komodo-beta
[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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved