use highest protocol version for pickling - #17
Conversation
|
@farwayer I actually looked at this an explicitly chose not to use the latest. The reason being is that I wanted to avoid the situation where you had a cache and the pickle format is updated (maybe a python version bump?) and you ruin your cache. This might have been paranoia on my part. Do you mind letting me know your thoughts on upgrades causing cache corruption? I bet it is really easy to sway me on this ;) Thanks for looking into it! |
|
I will try :) I also found encoding bug with unpickling py2 pickled cache in py3. |
use highest protocol version for pickling
|
Fantastic. Thank you @farwayer! |
This is a very rare situation, when used old cache data from one environment to another with lower python version. I think it makes no sense to use the old ASCII protocol.