ENH: Add serialization to account

This commit is contained in:
Brian Fink
2014-10-28 21:54:14 -04:00
parent affeb2afbc
commit 93296d7ef5
+6
View File
@@ -165,6 +165,12 @@ class Account(object):
def __repr__(self):
return "Account({0})".format(self.__dict__)
def serialize(self):
return 'Account', self.__dict__
def reconstruct(self, saved_state):
self.__dict__.update(saved_state)
class Position(object):