[Python-Dev] Accepting PEP 3154 for 3.4?
Serhiy Storchaka
storchaka at gmail.com
Tue Nov 19 21:32:11 CET 2013
19.11.13 21:59, Antoine Pitrou написав(ла):
> Note some drawbacks of frame opcodes:
> - the decoder has to sanity check the frame opcodes (what if a frame
> opcode is encountered when already inside a frame?)
This is only one simple check when reading the frame opcode.
> - a pickle-mutating function such as pickletools.optimize() may naively
> ignore the frame opcodes while rearranging the pickle stream, only to
> emit a new pickle with invalid frame sizes
But with naked frame sizes without opcodes it have even more chance to
produce invalid pickle.
More information about the Python-Dev
mailing list