[Python-Dev] making python's c iterators picklable (http://bugs.python.org/issue14288)

Christian Tismer tismer at stackless.com
Wed Mar 14 00:54:10 CET 2012


On 3/13/12 4:05 PM, Antoine Pitrou wrote:
> On Tue, 13 Mar 2012 22:53:42 +0000
> Kristján Valur Jónsson<kristjan at ccpgames.com>  wrote:
>> http://bugs.python.org/issue14288
>>
>> Raymond suggested that this patch should be discussed here, so here goes:
> Sounds good on the principle.
> Of course, the patch needs to be reviewed.

I am very much for this patch. Of course I am biased by my stackless
history and would be very happy to get most pickling into Python,
where it belongs.

To improve the patch a bit, I propose to put the hidden types into
some module. I agree with Kristjan that the types module would
be a good place to bootstrap the hidden iterable types.

I even would like to propose a PEP:
Whenever stuff is turned into C, which was picklable when implemented
in Python, or something new is implemented that makes sense to
pickle, a pickle implementation should always be provided.

cheers -- chris

-- 
Christian Tismer             :^)<mailto:tismer at stackless.com>
tismerysoft GmbH             :     Have a break! Take a ride on Python's
Karl-Liebknecht-Str. 121     :    *Starship* http://starship.python.net/
14482 Potsdam                :     PGP key ->  http://pgp.uni-mainz.de
work +49 173 24 18 776  mobile +49 173 24 18 776  fax n.a.
PGP 0x57F3BF04       9064 F4E1 D754 C2FF 1619  305B C09C 5A3B 57F3 BF04
       whom do you want to sponsor today?   http://www.stackless.com/



More information about the Python-Dev mailing list