Iv'e only just learnt about the pickle library, so I have been trying to learn how to use it. But I've run into a problem. What I'm trying to do is to save (pickle) a dictionary which has a object that holds a 2d list (grid). But pickle doesn't seem to save when I change one of the values of the seats. Here's some of the code
#Save movie data
def saveData():
pickle.dump(movieInfo, open("save.p", "wb"))
#load movie data
def loadData():
movieInfo = pickle.load(open("save.p", "rb"))
class seats:
def __init__(self):
self.seating = []
for i in range(0,10):
self.seating.append(
[False,False,False,False,False,False,False,False,False,False]
)
loadData()
input("continue...")
chooseMovie()
Any help would be much appreciated! Thank you.