[Stackless] Microthreads from class methods

Gordon McMillan gmcm at hypernet.com
Sun Sep 2 18:41:09 CEST 2001

Jacob Gorm Hansen wrote:
> is there a reason why (in SLP 2.0)
> The following seems not to work:
> class C:
>  def t1():
>   pass

That doesn't work period.

You need:
class C:
  def t1(self):

> uthread.new(C.t1)

uthread.new(C().t1()) # needs to be an instance

- Gordon
Stackless mailing list
Stackless at starship.python.net

More information about the Stackless mailing list