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... -- http://mail.python.org/mailman/listinfo/python-list