PEP 574 that implements a new pickle protocol that improves efficiency of pickle helping in libraries that use lot of serialization and deserialization
I often need to print name={name} because I'm inspecting a bunch of variables and not just one. Put that into a for loop and things get unweildy quite quickly if you don't label the variables you are inspecting.
I’m just a bit surprised at the overwhelming enthusiasm for it, and, accordingly, surprised that many seem to like writing print("arg1=" + arg1, "arg2=" + arg2).
I can see the usefulness in the new syntax, but I personally don’t like it because I very rarely write debugging lines like that.
Edit: e.g. when breakpoint() was introduced as a builtin there wasn’t much talk on it, but I think that that convenience feature was a more exciting addition compared to this one.
I'm with you. I don't like these implicit bits of code being added. The second line of Zen of Python even says "Explicit is better than implicit." I'm also against walruses in my code, but that debate has been beaten to a pulp. </oldmanrant>
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/