#37 Bug in float support

closed-duplicate
nobody
5
2004-06-22
2004-06-22
Tim Hochberg
No

Scott Snyder recently reported a bug in the pmath
module for psyco. Since that code appears to be derived
from the pfloatobject code, I checked that and sure
enought the bugs exists there as well.

The bug can be tickled by running the following little
snippet with Psyco compiled with DEBUG=1 (shamelessly
stolen from Scott's test case):

import psyco
psyco.full()

from math import pow

#~ def foo(etasize):
#~ pow (1.0, etasize)
def foo(etasize):
return 5.0 + etasize
foo ("1")

I'm attaching a patch that appears to fix this.

-tim

Discussion

  • Tim Hochberg
    Tim Hochberg
    2004-06-22

    Patch to fix ploatobject bug

     
    Attachments
  • Armin Rigo
    Armin Rigo
    2004-06-22

    • status: open --> closed-duplicate