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 mark.dickinson
Recipients aleax, christian.heimes, ggenellina, loewis, mancausoft, mark.dickinson, rhettinger
Date 2009-10-24.15:21:40
SpamBayes Score 0.00068489555
Marked as misclassified No
Message-id <1256397702.31.0.67920123032.issue1678380@psf.upfronthosting.co.za>
In-reply-to
Content
> I try: *p==0 && p[sizeof(double)-1]==0 && p[(sizeof(double)-1)/2]==0;

Sure, that should work.  It would seem cleaner and safer to use copysign, 
though: that way, things will still work when some other byte layout comes 
along, or when some version of Python starts using 128-bit IEEE 754 
doubles instead of 64-bit, or ...

Reopening:  I've been meaning to fix these checks to use copysign for a 
while now, anyway.
History
Date User Action Args
2009-10-24 15:21:42mark.dickinsonsetrecipients: + mark.dickinson, loewis, aleax, rhettinger, ggenellina, christian.heimes, mancausoft
2009-10-24 15:21:42mark.dickinsonsetmessageid: <1256397702.31.0.67920123032.issue1678380@psf.upfronthosting.co.za>
2009-10-24 15:21:41mark.dickinsonlinkissue1678380 messages
2009-10-24 15:21:40mark.dickinsoncreate