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 samuel.iseli
Recipients eric.smith, jcea, mark.dickinson, python-dev, samuel.iseli
Date 2012-02-03.13:51:39
SpamBayes Score 9.977187e-10
Marked as misclassified No
Message-id <1328277101.06.0.344991852847.issue13889@psf.upfronthosting.co.za>
In-reply-to
Content
I would definitely classify this as a bug in Python 2.7 as it breaks backwards-compatibility for embedding environments that default to 64bit FPU precision (e.g. Delphi).

Additionally the bug is very hard to detect and leads to wrong values with possibly disastrous effects.

Appended a patch with a new implementation of the Py_SET_53BIT_PRECISION_* macros for win32:

- precision is set only when needed
- setting and restoring only the x87 controlword (using __control87_2
  function).
- macros are not used for WIN64 as there's no x87 there
- there's no need for a custom symbol in the vc project anymore, 
  as I'm using the predefined _WIN32 symbol.
History
Date User Action Args
2012-02-03 13:51:41samuel.iselisetrecipients: + samuel.iseli, jcea, mark.dickinson, eric.smith, python-dev
2012-02-03 13:51:41samuel.iselisetmessageid: <1328277101.06.0.344991852847.issue13889@psf.upfronthosting.co.za>
2012-02-03 13:51:40samuel.iselilinkissue13889 messages
2012-02-03 13:51:40samuel.iselicreate