Created
January 9, 2010 05:12
-
-
Save droot/272736 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
class Serializer(): | |
""" | |
Class to provide serialization/deserialization functionality. | |
Mostly, other class will simple inherit this class to add | |
serializability functionality | |
""" | |
def serialize(self): | |
return jsonpickle.encode(self) | |
@staticmethod | |
def deserialize(ser_str): | |
return jsonpickle.decode(ser_str) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment