3 ms·
This seems to seriously misunderstand the point of pickle. It's not for data interchange. It's for e.g. caching objects or debugging. That's it. The fact it ke
by ChrisSD 6y ago
This seems to seriously misunderstand the point of pickle. It's not for data interchange. It's for e.g. caching objects or debugging. That's it.
The fact it keeps "old code" is a feature. The object is exactly as it was at the time it was saved.
- ryanisnan 6y agoI mean, the most popular async message queue for python broadly supports pickle as its serialization format. I don't think this problem is exclusive to this blog post.
- ChrisSD 6y agoI should have been more precise. I meant interchange between different programs/platforms/etc. Not internal messages.
- toyg 6y agoI've read quite a few blog posts of people discouraging the use of pickle for data interchange, which led me to believe that quite a few orgs actually use it for precisely that. I wouldn't use it, simply because I like my formats easy to inspect (if you want privacy, just put it on a secure channel like TLS or use some other standard wrapping), but I guess other people have less scruples.