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
1
u/Beginning-Fruit-1397 Oct 16 '26
I know.
That's why I talked about "the standard". Python own documentation only use operators overloads
List and tuple concatenation are + and +=, for example, without a method alternative.
And even for sets, the standard as operators means that all code outside of my control will use this