Re: results from active handler in a separate module
"Jonathan Ellis" <[email protected]> Thu, 28 Jun 2007 13:16:55 -0700
| Newsgroups | gmane.comp.python.spyce.general |
|---|---|
| Message-ID | <[email protected]> |
this just sets a local varible results that is destroyed as soon as the function is over the easiest thing is to put it in a module level variable results=None def calculate... global results results = ... On Thu, 28 Jun 2007 13:55:21 -0400, "Christopher Clarke" <cclarke-wYfHrJ5eQDBWk0Htik3J/[email protected]> said: > Hi All > In the active handler example handlerintro.spy > when i move calculate "outline" i.e to a module such as calculate.py > -- > def calculate(api,x,y): > results=x*y > > --- > how do i get a handle on the results from the spy file? > Regards > Chris > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/