Skip to content

Commit

Permalink
Add 'Cell.__repr__'. (#8683)
Browse files Browse the repository at this point in the history
  • Loading branch information
joar authored and tseaver committed Jul 17, 2019
1 parent a40d0d4 commit 1529594
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bigtable/google/cloud/bigtable/row_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ def __eq__(self, other):
def __ne__(self, other):
return not self == other

def __repr__(self):
return "<{name} value={value!r} timestamp={timestamp}>".format(
name=self.__class__.__name__, value=self.value, timestamp=self.timestamp
)


class PartialCellData(object):
"""Representation of partial cell in a Google Cloud Bigtable Table.
Expand Down

0 comments on commit 1529594

Please sign in to comment.