[issue9980] str(float) failure

Kiriakos Vlahos report at bugs.python.org
Wed Sep 29 23:04:15 CEST 2010


Kiriakos Vlahos <pyscripter at gmail.com> added the comment:

Does _Py_dg_dtoa depend on FPU flags that affect rounding or exceptions?  I failed to mention that python is embedded in a Delphi executable.  Delphi uses the following code at initialization.

procedure       _FpuInit;
asm
        FNINIT
        FWAIT
{$IFDEF PIC}
        CALL    GetGOT
        MOV     EAX,[EAX].OFFSET Default8087CW
        FLDCW   [EAX]
{$ELSE}
        FLDCW   Default8087CW
{$ENDIF}
end;

  Default8087CW: Word = $1332;{ Default 8087 control word.  FPU control
                                register is set to this value.
                                CAUTION:  Setting this to an invalid value
                                could cause unpredictable behavior. }

----------
versions:  -Python 3.2

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


More information about the Python-bugs-list mailing list