Re: Simple Threading Example Doesn't Work (2.5.1)

2007-06-12 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Seun Osewa wrote: > I've tried to run several threading examples in Python 2.5.1 (with > Stackless) For example: > > import threading > > theVar = 1 > > class MyThread ( threading.Thread ): > >def run ( self ): > > global theVar >

Simple Threading Example Doesn't Work (2.5.1)

2007-06-12 Thread Seun Osewa
Hello, I've tried to run several threading examples in Python 2.5.1 (with Stackless) For example: import threading theVar = 1 class MyThread ( threading.Thread ): def run ( self ): global theVar print 'This is thread ' + str ( theVar ) + ' speaking.'