[Python-Dev] PEP 574 -- Pickle protocol 5 with out-of-band data

Serhiy Storchaka storchaka at gmail.com
Thu Mar 29 14:13:10 EDT 2018


28.03.18 23:19, Antoine Pitrou пише:
> Agreed.  Do you know by which timeframe you'll know which opcodes you
> want to add?

I'm currently in the middle of the first part, trying to implement 
pickling local classes with static and class methods without creating 
loops. Other parts exist just like general ideas, I didn't rite code for 
them still. I try to do this with existing protocols, but maybe some new 
opcodes will be needed for efficiency. We are now at the early stage of 
3.8 developing, and I think we have a lot of time.

It wouldn't deserve bumping pickle version, but if we do this already, 
it would be worth to add shorter versions for FRAME. Currently it uses 
64-bit size, and 9 bytes is a large overhead for short pickles. 8-bit 
size would reduce overhead for short pickles, and 32-bit size would be 
enough for any practical use (larger data is not wrapped in a frame).



More information about the Python-Dev mailing list