Yes i tested it; just wanted to verify that is was stackless that made
pickling of function bodies possible, without installing non-stackless
python. Also it's impossible to test the general case.

Cheers, Lars


On Mon, Aug 18, 2014 at 10:25 PM, Richard Tew <[email protected]>
wrote:

> Did you test it?  Lars, please, if you can test something with code,
> you'll find out the answer faster than asking on the mailing list.
>
> On 8/18/14, lars van Gemerden <[email protected]> wrote:
> > Hi,
> >
> > I have a short question: does the ability for stackless to pickle
> tasklets
> > also mean that it can pickle functions and lambda's?
> >
> > as in:
> >
> > import cPickle as pickle
> >
> > if __name__ == "__main__":
> >     s = pickle.dumps(lambda x, y: x+y)
> >     f = pickle.loads(s)
> >     assert f(3,4) == 7
> >
> > Cheers, Lars
> > --
> > ====================================
> > Lars van Gemerden
> > [email protected]
> > +31 6 26 88 55 39
> > ====================================
> >
>
> _______________________________________________
> Stackless mailing list
> [email protected]
> http://www.stackless.com/mailman/listinfo/stackless
>



-- 
====================================
Lars van Gemerden
[email protected]
+31 6 26 88 55 39
====================================
_______________________________________________
Stackless mailing list
[email protected]
http://www.stackless.com/mailman/listinfo/stackless

Reply via email to