Example of how to pickle an instance of custom object, so it is loadable from another file, without the need of importing the original module. Rip-off of this SO answer.
To create pickle file:
python custom_class.py
Script unpickling the created pickle:
python unpickle.py
Should print out dictionary simple dictionary.
Copyright © 2018 Jaroslav Loebl [email protected] This work is free. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.