parent
54515138fc
commit
379462534c
|
@ -73,7 +73,7 @@ class Stack:
|
||||||
if len(self) == 0:
|
if len(self) == 0:
|
||||||
raise StackError("Cannot pop from empty Stack")
|
raise StackError("Cannot pop from empty Stack")
|
||||||
lastitem = self.data[-1]
|
lastitem = self.data[-1]
|
||||||
self.data = self.data[:-1]
|
del self.data[-1]
|
||||||
return lastitem
|
return lastitem
|
||||||
|
|
||||||
def populate(self, itemlist, destructive=False):
|
def populate(self, itemlist, destructive=False):
|
||||||
|
|
Loading…
Reference in New Issue