def pop(self, row=None):
        if row is None:
            row = len(self) - 1
        result = self[row]
        self.removeRow(row)
        return result
Remove and return an item (default last item)
dataset/ETHPy150Open glue-viz/glue/glue/utils/qt/python_list_model.py/PythonListModel.pop