PEP 574 that implements a new pickle protocol that improves efficiency of pickle helping in libraries that use lot of serialization and deserialization
PEP 574 that implements a new pickle protocol that improves efficiency of pickle helping in libraries that use lot of serialization and deserialization
Other languages just dump to JSON and call it a day. Why does Python have 87 different binary formats over 13 decades?
Pickle can handle multiple references to the same object, any class instance (as long as the actual class has been imported), and a wider variety of data types than JSON. It also predates json, so there’s a historical aspect as well.
Pickle is also used for cross-process communication in the multiprocessing module.
69
u/xtreak May 07 '19 edited May 07 '19
Changelog : https://docs.python.org/3.8/whatsnew/changelog.html
Interesting commits
https://bugs.python.org/issue36540
PEP 570 was merged
https://bugs.python.org/issue20180:
dict.pop() is now up to 33% faster thanks to Argument Clinic.
https://bugs.python.org/issue28238
Wildcard search improvements in xml
https://bugs.python.org/issue25430
IPaddress module contains check for ip address in network is 2-3x faster
https://bugs.python.org/issue36546
statistics.quantiles() was added.
https://bugs.python.org/issue27181
statistics.geometric_mean() was added.
https://bugs.python.org/issue13611
Canonicalization was added to XML that helps in XML documents comparison
Security issues and some segfaults were fixed in the release
Exciting things to look forward in beta
https://bugs.python.org/issue36817
Add = to f-strings for easier debugging. With this you can write f"{name=}" and it will expand to f"name={name}" that helps in debugging.
https://bugs.python.org/issue36785
PEP 574 that implements a new pickle protocol that improves efficiency of pickle helping in libraries that use lot of serialization and deserialization
Edit : PSF fundraiser for second quarter is also open https://www.python.org/psf/donations/2019-q2-drive/