|
|
|
|
|
by krenel
2310 days ago
|
|
Operators are polymorphic. While the + operator is commutative when using on integers/float, it is not currently when used on lists: >>> [1,2,3] + [4,5,6] [1, 2, 3, 4, 5, 6] >>> [4,5,6] + [1,2,3] [4, 5, 6, 1, 2, 3] In dictionaries it would behave differently as well (duplicated keys, etc.) |
|