Python: saving and loading a class definition
Posted
by
Peterstone
on Stack Overflow
See other posts from Stack Overflow
or by Peterstone
Published on 2011-01-01T12:33:55Z
Indexed on
2011/01/01
12:54 UTC
Read the original article
Hit count: 192
Hi! I am interested in saving and load objects using the pickle module as you can read in a question I asked before: Python: Errors saving and loading objects with pickle module
Someone commment:
1, In an other way: the error is raise because pickle wanted to load an instance of the class Fruits and search for the class definition where it was defined, but it didn't find it so it raise the error
Now I want to save and load a class definition in order to solve the problem I describe in the question mentioned before. Thank you so much!
© Stack Overflow or respective owner