parameters: (self, items)
docstring: Replace the 'items' list of this OrderedSet with a new one, updating
          self.map accordingly.
docstring_summary: Replace the 'items' list of this OrderedSet with a new one, updating
          self.map accordingly.
docstring_tokens: Replace the items list of this OrderedSet with a new one updating self . map accordingly .
function: def _update_items(self, items):
          """
          Replace the 'items' list of this OrderedSet with a new one, updating
          self.map accordingly.
          """
          self.items = items
          self.map = {item: idx for (idx, item) in enumerate(items)}
function_tokens: def _update_items ( self , items ) : self . items = items self . map = { item : idx for ( idx , item ) in enumerate ( items ) }