Mark Dickinson <[EMAIL PROTECTED]> added the comment: 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? ---------- keywords: +patch Added file: http://bugs.python.org/file10115/ldexp.patch __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2487> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com