X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=fulbank%2Fcurrency.py;h=0c5660c92cfd4e593f0ff2dbe19ea85024e4ca5c;hb=HEAD;hp=547acb9034bcd339d98f869ed38a2bfdd1efd3b6;hpb=0c362f2c8f0cb3c202acecb4925c28991dbef0ee;p=fulbank.git diff --git a/fulbank/currency.py b/fulbank/currency.py index 547acb9..0c5660c 100644 --- a/fulbank/currency.py +++ b/fulbank/currency.py @@ -143,3 +143,6 @@ class value(object): if self.currency != other.currency: raise ValueError("cannot compare %s with %s" % (self.currency.symbol, other.currency.symbol)) return self.amount >= other.amount + + def __hash__(self): + return hash(self.amount) + hash(self.currency)