[Stackless] 1. Stackless Error (Carl, Andrew F (AS))

Andrew Francis andrewfr_ice at yahoo.com
Sat Mar 13 14:34:51 CET 2010

Hi Andy:

--- On Sat, 3/13/10, stackless-request at stackless.com <stackless-request at stackless.com> wrote:

> Message: 1
> Date: Fri, 12 Mar 2010 11:50:52 -0600
> From: "Carl, Andrew F (AS)" <a.carl at ngc.com>
> To: <stackless at stackless.com>
> Cc: "Carl, Andrew F \(AS\)" <a.carl at ngc.com>
> Subject: [Stackless] Stackless Error
> Message-ID:
>     <CE1C9C26CC18FD4E804F232CEC1F845103B10BBF at XMBTX132.northgrum.com>
> Content-Type: text/plain; charset="us-ascii"
> Attempting to use the following:
> Stackless.tasklet( self.r_run(args) )
> I get the following post run error:
> "TypeError: tasklet function must be a callable"

I don't know what self is. However tasklet() expects a callable (
hence the error). A while you can create a tasklet is by passing 
function (a callable) to the tasklet function. The arguments are passed separately.


def printIt(message):
    print message


Hope this helps.



More information about the Stackless mailing list