Comment 6 for bug 638764

Revision history for this message
Walther (walther-md) wrote :

Hmm, I found this bug report about it:

http://bugs.python.org/issue2531

If I switch to Python 3.1.2, running the test file gives me :

 ./test.py
Traceback (most recent call last):
  File "./test.py", line 7, in <module>
    if rx <0.0:
TypeError: unorderable types: Decimal() < float()

I suggest the fix should be

ry = Decimal(token[1]) * 1
if ry < Decimal("0.0"):

This makes the test file work correctly for me again.