homepage

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 kristjan.jonsson
Recipients eric.snow, jcea, kristjan.jonsson, mark.dickinson, michael.foord, pitrou, rhettinger, serhiy.storchaka
Date 2012年04月20日.09:12:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1334913162.57.0.413707890586.issue14381@psf.upfronthosting.co.za>
In-reply-to
Content
Interesting.
I declare that this rule does not apply here since the code is a deliberate hack: We are pretending that a certain address points to integers and checking those integers. 
If you insist on following the standard, you could do 
double cmp = 0;
return mcmcmp(&cmp, fval, sizeof(fval)) == 0;
but on all real machines this is the same as:
PY_LONG_LONG cmp = 0;
return mcmcmp(&cmp, fval, sizeof(fval)) == 0;
Which again is the same as 
return *(PY_LONG_LONG*)&fval == 0;
technically speaking, even if the standard doesn't agree. You could implement this with in-line assembly and so cheerfully sidestep the standard.
When you're hacking, your're hacking and the standard isn't your friend :)
Anyway, this proposal has been rejected due to lack of interest or some misguided idea of performance, so the point is moot.
History
Date User Action Args
2012年04月20日 09:13:32kristjan.jonssonunlinkissue14381 messages
2012年04月20日 09:12:42kristjan.jonssonsetrecipients: + kristjan.jonsson, rhettinger, jcea, mark.dickinson, pitrou, michael.foord, eric.snow, serhiy.storchaka
2012年04月20日 09:12:42kristjan.jonssonsetmessageid: <1334913162.57.0.413707890586.issue14381@psf.upfronthosting.co.za>
2012年04月20日 09:12:42kristjan.jonssonlinkissue14381 messages
2012年04月20日 09:12:41kristjan.jonssoncreate

AltStyle によって変換されたページ (->オリジナル) /