a pickle's pickle
temposs at gmail.com
temposs at gmail.com
Tue Aug 2 13:23:31 EDT 2005
I intended to pickle the class instance I call trainer...from my code,
also in the first post:
trainerString = trainDB.read()
trainer = loads(trainerString)
except EOFError:
trainer = TrainingMatrix()
...
trainerString = dumps(trainer)
...
So basically trainer always gets an existing TrainingMatrix(the class)
pickled object if there is a file to read from, otherwise it just makes
a new instance. Either way, the instance trainer is pickled at the
end. Maybe I'm missing something...
More information about the Python-list
mailing list