class_docstr: An OrderedSet is a custom MutableSet that remembers its order, so that
  every entry has an index that can be looked up.
  
  Example:
      >>> OrderedSet([1, 1, 2, 3, 2])
      OrderedSet([1, 2, 3])
class_docstr_tok: ["An","OrderedSet","is","a","custom","MutableSet","that","remembers","its","order",",","so","that","every","entry","has","an","index","that","can","be","looked","up",".","Example",":",">",">",">","OrderedSet","(","[","1",",","1",",","2",",","3",",","2","]",")","OrderedSet","(","[","1",",","2",",","3","]",")"]
docstr: Update this OrderedSet to remove items from another set, then
  add items from the other set that were not present in this set.
  
  Example:
      >>> this = OrderedSet([1, 4, 3, 5, 7])
      >>> other = OrderedSet([9, 7, 1, 3, 2])
      >>> this.symmetric_difference_update(other)
      >>> print(this)
      OrderedSet([4, 5, 9, 2])
docstr_tok: ["Update","this","OrderedSet","to","remove","items","from","another","set",",","then","add","items","from","the","other","set","that","were","not","present","in","this","set",".","Example",":",">",">",">","this","=","OrderedSet","(","[","1",",","4",",","3",",","5",",","7","]",")",">",">",">","other","=","OrderedSet","(","[","9",",","7",",","1",",","3",",","2","]",")",">",">",">","this.symmetric_difference_update","(","other",")",">",">",">","print","(","this",")","OrderedSet","(","[","4",",","5",",","9",",","2","]",")"]
code: def symmetric_difference_update(self, other):
      """
      Update this OrderedSet to remove items from another set, then
      add items from the other set that were not present in this set.
  
      Example:
          >>> this = OrderedSet([1, 4, 3, 5, 7])
          >>> other = OrderedSet([9, 7, 1, 3, 2])
          >>> this.symmetric_difference_update(other)
          >>> print(this)
          OrderedSet([4, 5, 9, 2])
      """
      items_to_add = [item for item in other if item not in self]
      items_to_remove = set(other)
      self._update_items(
          [item for item in self.items if item not in items_to_remove]
          + items_to_add
      )
  
imports: import itertools
  from collections import deque
label_desc: Use image node_id 28 for calling the OrderedSet obj's underlying member method code with example usage: obj.symmetric_difference_update(other) without return types