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 christian.heimes, fredrikj, mark.dickinson
Date 2008-04-26.15:33:24
SpamBayes Score 0.013024913
Marked as misclassified No
Message-id <1209224027.89.0.865298002036.issue2487@psf.upfronthosting.co.za>
In-reply-to
Content
Here's a patch that should fix ldexp(x, large_int), as follows:

ldexp(x, n) = x if x is a NaN, zero or infinity
ldexp(x, n) = copysign(0., x) for x finite and nonzero, n large and -ve
ldexp(x, n) -> OverflowError for x finite and nonzero, n large and +ve

It would be good if someone else could review this before I check it in;
Fredrik, would you have time for this?
History
Date User Action Args
2008-04-26 15:33:48mark.dickinsonsetspambayes_score: 0.0130249 -> 0.013024913
recipients: + mark.dickinson, christian.heimes, fredrikj
2008-04-26 15:33:47mark.dickinsonsetspambayes_score: 0.0130249 -> 0.0130249
messageid: <1209224027.89.0.865298002036.issue2487@psf.upfronthosting.co.za>
2008-04-26 15:33:42mark.dickinsonlinkissue2487 messages
2008-04-26 15:33:39mark.dickinsoncreate