X-Git-Url: http://dolda2000.com/gitweb/?p=fulbank.git;a=blobdiff_plain;f=fulbank%2Fcurrency.py;h=0c5660c92cfd4e593f0ff2dbe19ea85024e4ca5c;hp=547acb9034bcd339d98f869ed38a2bfdd1efd3b6;hb=619e377ba4263dc5ccdb710ae2e13388e7ed21e9;hpb=88d3c3d9e2b4c5ab6112bc76dbcd8c04244cb177 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)