docs: def _poplast(self):
          """For avoiding lock during inserting to keep maxlen"""
  
          try:
              tup = self.data.pop()
          except IndexError as ex:
              ex.args = ('DEPQ is already empty',)
              raise
  
          self_items = self.items
  
          try:
              self_items[tup[0]] -= 1
              if self_items[tup[0]] == 0:
                  del self_items[tup[0]]
          except TypeError:
              r = repr(tup[0])
              self_items[r] -= 1
              if self_items[r] == 0:
                  del self_items[r]
  
          return tup