Serhiy Storchaka added the comment: Note that Decimal(0.05) != Decimal('0.05').
>>> Decimal(0.05) Decimal('0.05000000000000000277555756156289135105907917022705078125') >>> hash(Decimal(0.05)) 966367654 >>> hash(Decimal('0.05000000000000000277555756156289135105907917022705078125')) 966367654 >>> hash(0.05) 966367654 ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27265> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com