We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
orderedset/lib/orderedset/_orderedset.pyx
Line 505 in 9b83075
>>> {1}.issubset({2, 3}) False >>> {1} <= {2, 3} False >>> OrderedSet([1]).issubset(OrderedSet([2, 3])) False >>> OrderedSet([1]) <= OrderedSet([2, 3]) False
>>> {1}.issuperset({2, 3}) False >>> {1} >= {2, 3} False >>> {1} > {2, 3} False >>> OrderedSet([1]).issuperset(OrderedSet([2, 3])) False >>> OrderedSet([1]) >= OrderedSet([2, 3]) True >>> OrderedSet([1]) > OrderedSet([2, 3]) True
Edit: Oh, this may be solved by pull #22
>>> OrderedSet([1]).issubset({3}) False >>> OrderedSet([1]).issuperset({3}) # What is return {3} <= OrderedSet([1]), but… True >>> {3} <= OrderedSet([1]) True >>> {3}.issubset(OrderedSet([1])) False >>> {3}.issuperset(OrderedSet([1])) False
{3} <= OrderedSet([1])
>>> OrderedSet([1]).issuperset([3]) True >>> OrderedSet([1]).issubset([3]) True
Line 495 in 9b83075
isinstance(other, (Set, list))
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If something is not subset, then it cannot be sure is superset or not, it must be tested
orderedset/lib/orderedset/_orderedset.pyx
Line 505 in 9b83075
>>> {1}.issubset({2, 3})
False
>>> {1} <= {2, 3}
False
>>> OrderedSet([1]).issubset(OrderedSet([2, 3]))
False
>>> OrderedSet([1]) <= OrderedSet([2, 3])
False
>>> {1}.issuperset({2, 3})
False
>>> {1} >= {2, 3}
False
>>> {1} > {2, 3}
False
>>> OrderedSet([1]).issuperset(OrderedSet([2, 3]))
False
>>> OrderedSet([1]) >= OrderedSet([2, 3])
True
>>> OrderedSet([1]) > OrderedSet([2, 3])
True
Edit: Oh, this may be solved by pull #22
Compare between OrderedSet and set
>>> OrderedSet([1]).issubset({3})
False
>>> OrderedSet([1]).issuperset({3}) # What is return
{3} <= OrderedSet([1])
, but…True
>>> {3} <= OrderedSet([1])
True
>>> {3}.issubset(OrderedSet([1]))
False
>>> {3}.issuperset(OrderedSet([1]))
False
Compare between OrderedSet and list
>>> OrderedSet([1]).issuperset([3])
True
>>> OrderedSet([1]).issubset([3])
True
orderedset/lib/orderedset/_orderedset.pyx
Line 495 in 9b83075
It may be:
isinstance(other, (Set, list))
The text was updated successfully, but these errors were encountered: