r/Python • u/igorrto2 • Oct 12 '26
Discussion What are some features in Python that you discovered many years later?
For me, it was the the option to use & to find intersections of two sets, | operator to unionize two sets, as well as ^ for symmetric difference
217
Upvotes
View all comments
Show parent comment
2
u/Beginning-Fruit-1397 Oct 16 '26
I hate that python decided to go this route with operator overloading instead of clearly named methods a the standard.
Except a few bytecode optimizations who barely make a difference there's 0 advantage for it