Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
set theory v2 #7534
I can check for dicts, but other types can be passed that are not
But considering that most of this should be comming from yaml, it should be
referenced this pull request
May 30, 2014
Actually @mpdehaan pointed out that, by turning inputs into sets, we are removing duplicates in them too. Hence, the fallback operations are all wrong here.
Example with hashable items:
Example with non-hashable items:
Also, the exact same result (than the set operations) is impossible to achieve because sets are implicitly unordered (meaning that you can get varying orders when iterating it) whereas lists are ordered by definition. Anyway, I guess this is an acceptable trade-off...