parameters: (self, other)
docstring: Update this OrderedSet to keep only items in another set, preserving
          their order in this set.
  
          Example:
              >>> this = OrderedSet([1, 4, 3, 5, 7])
              >>> other = OrderedSet([9, 7, 1, 3, 2])
              >>> this.intersection_update(other)
              >>> print(this)
              OrderedSet([1, 3, 7])
docstring_summary: Update this OrderedSet to keep only items in another set, preserving
          their order in this set.
docstring_tokens: Update this OrderedSet to keep only items in another set preserving their order in this set .
function: def intersection_update(self, other):
          """
          Update this OrderedSet to keep only items in another set, preserving
          their order in this set.
  
          Example:
              >>> this = OrderedSet([1, 4, 3, 5, 7])
              >>> other = OrderedSet([9, 7, 1, 3, 2])
              >>> this.intersection_update(other)
              >>> print(this)
              OrderedSet([1, 3, 7])
          """
          other = set(other)
          self._update_items([item for item in self.items if item in other])
function_tokens: def intersection_update ( self , other ) : other = set ( other ) self . _update_items ( [ item for item in self . items if item in other ] )