code: def _get_next_slot(self, tag):
          '''
          get the first unused supval table key, or 0 if the
           table is empty.
          useful for filling the supval table sequentially.
          '''
          slot = self._n.suplast(tag)
          if slot is None or slot == idaapi.BADNODE:
              return 0
          else:
              return slot + f _get_next_slot(self, tag):
          '''
          get the first unused supval table key, or 0 if the
           table is empty.
          useful for filling the supval table sequentially.
          '''
          slot = self._n.suplast(tag)
          if slot is None or slot == idaapi.BADNODE:
              return 0
          else:
              return slot + 1
docs: get the first unused supval table key, or 0 if the
           table is empty.
          useful for filling the supval table sequentially.