This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import inspect | |
import json | |
''' | |
Functions for clients to call to serialise/unserialise from strings and files | |
Idea taken from http://getpython3.com/diveintopython3/serializing.html | |
and generalised to allow helper functions to be part of the custom classes | |
and avoid case statements |
NewerOlder