Skip to content
Snippets Groups Projects
Commit f790e439 authored by James Stevens's avatar James Stevens
Browse files

comment documenting reason for overriding Record.__repr__

parent 6fbf29d7
No related branches found
No related tags found
No related merge requests found
...@@ -498,6 +498,7 @@ class Op(Record): ...@@ -498,6 +498,7 @@ class Op(Record):
return hash(str(self)) return hash(str(self))
def __repr__(self): def __repr__(self):
# Record.__repr__ overridden for consistent ordering and conciseness
return "Op(%s, %s, %s)" % (self.dtype, self.name, self.count_granularity) return "Op(%s, %s, %s)" % (self.dtype, self.name, self.count_granularity)
# }}} # }}}
...@@ -574,6 +575,7 @@ class MemAccess(Record): ...@@ -574,6 +575,7 @@ class MemAccess(Record):
return hash(str(self)) return hash(str(self))
def __repr__(self): def __repr__(self):
# Record.__repr__ overridden for consistent ordering and conciseness
return "MemAccess(%s, %s, %s, %s, %s, %s)" % ( return "MemAccess(%s, %s, %s, %s, %s, %s)" % (
self.mtype, self.mtype,
self.dtype, self.dtype,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment