[Stackless] Problem with Count Objects (itertools) and pickle?

Richard Tew richard.m.tew at gmail.com
Tue Nov 3 06:48:40 CET 2009


On Mon, Nov 2, 2009 at 3:02 PM, Andrew Dalke <dalke at dalkescientific.com> wrote:
> On Nov 2, 2009, at 2:46 AM, Andrew Francis wrote:
>> TypeError: can't pickle count objects
>
> Indeed! That was a bad suggestion of mine. itertools.count iterators (like
> many other types in Python) do not support pickling.
...
>> Is this meant to so?
>
> I checked the source. count does not implement the pickling protocol.

Stackless should include pickling support for count, along with any
other similar functionality.

Anyone care to work on and provide a patch?

Cheers,
Richard.




More information about the Stackless mailing list