[issue9980] str(float) failure

Kiriakos Vlahos report at bugs.python.org
Wed Sep 29 05:11:32 CEST 2010

New submission from Kiriakos Vlahos <pyscripter at gmail.com>:

I am the author of PyScripter a popular python IDE (pyscripter.googlecode.com).  Following a user report I found out that str(float) occasionally produces wrong results with Python 2.7 and 3.1.

>>> str(38210.0)  //wrong
>>> str(37210.0) // correct
>>> str(36210.0)  //wrong

This only happens with the embedded python engine which uses the pythonxx.dll of the official distribution.  It does not happen using the stand alone interpreter of the PyScripter remote engine.

The recent changes in Python 3.2a2 fix this issue.
Any ideas why the embedded Python would give different results from the stand alone interpreter?

components: Interpreter Core, Windows
messages: 117574
nosy: Kiriakos.Vlahos
priority: normal
severity: normal
status: open
title: str(float) failure
versions: Python 2.7, Python 3.1

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list