Skip to content

Commit

Permalink
Added a __repr__
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmoritz committed Oct 1, 2011
1 parent ec26f07 commit b342ee4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crdt/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ class StateCRDT(object):
def __init__(self):
pass

def __repr__(self):
return "<%s %s>" % (self.__class__, self.value)

def clone(self):
"""Create a copy of this CRDT instance"""
return self.__class__.from_payload(deepcopy(self.payload))
Expand Down

0 comments on commit b342ee4

Please sign in to comment.