[issue3462] test_builtin fails after test_decimal

Antoine Pitrou report at bugs.python.org
Tue Jul 29 14:42:38 CEST 2008


Antoine Pitrou <pitrou at free.fr> added the comment:

My wild uneducated guess is that it's due to a nan-like value being in
the globals, and comparing unequal to itself:

>>> d = {1: float('nan')}
>>> d
{1: nan}
>>> d == d
False
>>> import decimal
>>> nan = decimal.Decimal('nan')
>>> d = {1: nan}
>>> d == d
False

----------
nosy: +pitrou

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3462>
_______________________________________


More information about the Python-bugs-list mailing list