parameters: (self, other)
docstring: Returns true if the containers have the same items. If `other` is a
          Sequence, then order is checked, otherwise it is ignored.
  
          Example:
              >>> oset = OrderedSet([1, 3, 2])
              >>> oset == [1, 3, 2]
              True
              >>> oset == [1, 2, 3]
              False
              >>> oset == [2, 3]
              False
              >>> oset == OrderedSet([3, 2, 1])
              False
docstring_summary: Returns true if the containers have the same items. If `other` is a
          Sequence, then order is checked, otherwise it is ignored.
docstring_tokens: Returns true if the containers have the same items . If other is a Sequence then order is checked otherwise it is ignored .
function: def __eq__(self, other):
          """
          Returns true if the containers have the same items. If `other` is a
          Sequence, then order is checked, otherwise it is ignored.
  
          Example:
              >>> oset = OrderedSet([1, 3, 2])
              >>> oset == [1, 3, 2]
              True
              >>> oset == [1, 2, 3]
              False
              >>> oset == [2, 3]
              False
              >>> oset == OrderedSet([3, 2, 1])
              False
          """
          # In Python 2 deque is not a Sequence, so treat it as one for
          # consistent behavior with Python 3.
          if isinstance(other, (Sequence, deque)):
              # Check that this OrderedSet contains the same elements, in the
              # same order, as the other object.
              return list(self) == list(other)
          try:
              other_as_set = set(other)
          except TypeError:
              # If `other` can't be converted into a set, it's not equal.
              return False
          else:
              return set(self) == other_as_set
function_tokens: def __eq__ ( self , other ) : # In Python 2 deque is not a Sequence, so treat it as one for # consistent behavior with Python 3. if isinstance ( other , ( Sequence , deque ) ) : # Check that this OrderedSet contains the same elements, in the # same order, as the other object. return list ( self ) == list ( other ) try : other_as_set = set ( other ) except TypeError : # If `other` can't be converted into a set, it's not equal. return False else : return set ( self ) == other_as_set