Author Jonathan.Livni
Recipients Jonathan.Livni, georg.brandl
Date 2011-02-16.08:47:53
SpamBayes Score 8.18705e-05
Marked as misclassified No
Message-id <1297846074.77.0.419133898925.issue11221@psf.upfronthosting.co.za>
In-reply-to
Content
The exact list of decimals doesn't help - I tried taking the list and reproducing the bug with the following short script, but the problem did not reproduced:

from decimal import Decimal
L = [Decimal('6.700'), Decimal('6.800'), Decimal('7.140'), Decimal('7.460'), Decimal('7.735'), Decimal('8.160'), Decimal('8.280'), Decimal('8.355'), Decimal('8.710'), Decimal('9.640'), Decimal('10.155'), Decimal('10.460'), Decimal('10.810'), Decimal('11.875'), Decimal('12.310'), Decimal('12.315'), Decimal('13.250'), Decimal('13.205'), Decimal('13.750'), Decimal('14.245'), Decimal('14.805'), Decimal('15.385'), Decimal('15.955'), Decimal('16.365'), Decimal('16.960'), Decimal('17.500'), Decimal('19.445')]
print all(x<=y for x, y in zip(L, L[1:]))

The script above rightfully printed False.
The decimal list above was taken from the pydev debugger session where I found the bug.

In the original script I do not mess around with Decimal at all. I just cast too and from float and use simple arithmetics with it.
History
Date User Action Args
2011-02-16 08:47:54Jonathan.Livnisetrecipients: + Jonathan.Livni, georg.brandl
2011-02-16 08:47:54Jonathan.Livnisetmessageid: <1297846074.77.0.419133898925.issue11221@psf.upfronthosting.co.za>
2011-02-16 08:47:54Jonathan.Livnilinkissue11221 messages
2011-02-16 08:47:53Jonathan.Livnicreate