Jul-11-2020, 07:59 AM
(Jul-09-2020, 03:51 AM)deanhystad Wrote: To be honest I am surprised that > and < don't throw an error when used with sets. The result is meaningless.
The operators when used with sets test for subset and superset.
>>> set([3]) < set([4, 5]) # first is not a subset of the second False >>> set([5]) < set([4, 5]) # first is a subset of the second True