This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Kiriakos.Vlahos
Recipients Kiriakos.Vlahos
Date 2010-09-29.03:11:28
SpamBayes Score 3.3914753e-06
Marked as misclassified No
Message-id <1285729892.65.0.25912191442.issue9980@psf.upfronthosting.co.za>
In-reply-to
Content
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.

eg.
>>> str(38210.0)  //wrong
'3820:.0'
>>> str(37210.0) // correct
'37210.0'
>>> str(36210.0)  //wrong
'3620:.0'

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?
History
Date User Action Args
2010-09-29 03:11:32Kiriakos.Vlahossetrecipients: + Kiriakos.Vlahos
2010-09-29 03:11:32Kiriakos.Vlahossetmessageid: <1285729892.65.0.25912191442.issue9980@psf.upfronthosting.co.za>
2010-09-29 03:11:29Kiriakos.Vlahoslinkissue9980 messages
2010-09-29 03:11:28Kiriakos.Vlahoscreate