Hi Andy: --- On Sat, 3/13/10, [email protected] <[email protected]> wrote:
> Message: 1 > Date: Fri, 12 Mar 2010 11:50:52 -0600 > From: "Carl, Andrew F (AS)" <[email protected]> > To: <[email protected]> > Cc: "Carl, Andrew F \(AS\)" <[email protected]> > Subject: [Stackless] Stackless Error > Message-ID: > <[email protected]> > 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. example def printIt(message): print message stackless.tasklet(printIt)(message) Hope this helps. Cheers, Andrew _______________________________________________ Stackless mailing list [email protected] http://www.stackless.com/mailman/listinfo/stackless
