Incorrect Decimal-Float behaviour in comparison tests

2006-03-03 Thread Cassiano, Marco
I have difficulties with a weird Python 2.4.2 behaviour in comparing Decimal to Floats. For Example : >>> from decimal import Decimal >>> a=Decimal('3.7') >>> b=6.3 >>> if a > b :print a,b,'a is greater than b - NOT TRUE' ... else: print a,b,'b is greater than a - CORRECT' ... 3.7 6.3 a

Sleepycat Bsdbd 4.3.27 and Python 2.4.1

2005-05-12 Thread Cassiano, Marco
Hi all, I’ve just compiled Python 2.4.1 on a linux box (RHEL 3AS) after having installed Berkeley DB 4.3.27 from sleepycat Software.During the configure/build process python correctly found the BSBDB library. I then installed the rest of my environment which is correctly working with Python 2