[Stackless] Problem with Count Objects (itertools) and pickle?
Kristján Valur Jónsson
kristjan at ccpgames.com
Wed Nov 4 10:12:42 CET 2009
I had a quick look into itertoolsmodule.c (I didn't know it was a c module.)
There is a bunch of custom types, each for a different iterator. They would all need pickling support, and unittests.
I expect the pickling support to be straightforward. I´d like to see it done by modifying the module, rather than by adding the "wrap" hack in prickelpit.c, because I want to migrate this into C python.
> -----Original Message-----
> From: Richard Tew [mailto:richard.m.tew at gmail.com]
> Sent: 4. nóvember 2009 00:33
> To: Kristján Valur Jónsson
> Cc: Andrew Dalke; Andrew Francis; stackless at stackless.com
> Subject: Re: [Stackless] Problem with Count Objects (itertools) and
> 2009/11/3 Kristján Valur Jónsson <kristjan at ccpgames.com>:
> > I've been planning to pitch the idea to C python people that
> iterators be made picklable in vanilla python.
> > It seems like a perfectly reasonable extension to the language, and
> I'm sure the stackless python people would be willing to share some of
> the experience from stackless to make it happen.
> > The tricky part, which stackless has done, is to make generators
> While in general, we don't want to adopt functionality changes that
> have not been adopted by Python, I think when it comes to making
> Stackless work as advertised this sort of change should be made ASAP.
> If Andrew or anyone makes a patch that does the trick for this or any
> other "new" feature that prevents Stackless from working as
> advertised, we'll commit it as soon as it is ready.
More information about the Stackless