Imagine I went on Twitter and made the incendiary statement that Python 3.9.5 has not improved in any way on Python 3.0.
Could you prove me wrong?
If so, how?
28
2
76
You’re unable to view this Tweet because this account owner limits who can view their Tweets. Learn more
Additionally, the dictionary union operator (PEP 584, added in 3.9) is just some really nice syntax sugar to have: `d1 | d2` is arguably much more intuitive than `{**d1, **d2}`
between | and := I feel like a lot of the stuff people are selling python 3 to me on are things that strike me as "perl shit". like originally 18 years ago i dumped perl for python because it didn't have all these super specific operators. why not d1.union(d2)
On one hand, I love how python implements operator overloading. On the other, I have to look up set operators *every time* and nobody can convince me they help readability
It's intuitive if you're used to the bitwise operators since those are set operations defined over a set of indexed bits. It's a more general interpretation of them.
It makes a lot more sense than / for joining paths and perhaps even the + operator for joining strings too.
I'm not a fan of using operator overloading beyond the standard meaning / definition of the operators. The set operators aren't a case of that though. You could argue having the bitwise/set operators isn't worth it, but there are a lot of types of code where that's commonly used.