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 christian.heimes
Recipients christian.heimes, georg.brandl, ldeller, vstinner
Date 2008-10-03.12:19:44
SpamBayes Score 0.00058306876
Marked as misclassified No
Message-id <1223036386.49.0.664500762873.issue4024@psf.upfronthosting.co.za>
In-reply-to
Content
Please use copysign(1.0, fval) == 1.0 instead of your memcpy trick. It's
the cannonical way to check for negative zero. copysign() is always
available because we have our own implementation if the platform doesn't
provide one. We might also want to special case 1.0 and -1.0.

I've to check with Guido and Barry if we can get the optimization into
2.6.1 and 3.0.1. It may have to wait until 2.7 and 3.0.
History
Date User Action Args
2008-10-03 12:19:46christian.heimessetrecipients: + christian.heimes, georg.brandl, vstinner, ldeller
2008-10-03 12:19:46christian.heimessetmessageid: <1223036386.49.0.664500762873.issue4024@psf.upfronthosting.co.za>
2008-10-03 12:19:45christian.heimeslinkissue4024 messages
2008-10-03 12:19:44christian.heimescreate