Skip to content

Commit

Permalink
hashable users for fast set comparisons
Browse files Browse the repository at this point in the history
  • Loading branch information
atl committed Jun 14, 2012
1 parent f5341db commit ba324f1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion marmalade/timj.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,4 +178,7 @@ def get_liked_jams(self, results=10):
return [Jam(**util.fix(raw_jam)) for raw_jam in liked_jams]

def __repr__(self):
return "TIMJUser <%s>" % self.id
return "TIMJUser <%s>" % self.id

def __hash__(self):
return hash(self.id)

0 comments on commit ba324f1

Please sign in to comment.