[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;
        CALL    GetGOT
        MOV     EAX,[EAX].OFFSET Default8087CW
        FLDCW   [EAX]
        FLDCW   Default8087CW

  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>

More information about the Python-bugs-list mailing list