Is there a data type in python that takes a pair (a, b) and processes it symmetrically? That is, (a, b) is treated as the same as (b, a). It would be preferable not to have a code that manually checks if two pairs have equality, checking if places a and b are replaced.
source
share