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 akira, mark.dickinson, rhettinger
Date 2010-09-29.19:14:06
SpamBayes Score 3.5526488e-09
Marked as misclassified No
Message-id <1285787648.94.0.651606000534.issue9959@psf.upfronthosting.co.za>
In-reply-to
Content
Applied further tweaks in r85120:  for an integer n, log(n) is now computed as log(float(n)), provided only that n is small enough to be converted to a float without overflow.  This puts log on a more equal footing with all the other math module functions, and satisfies the (reasonable, IMO) expectation that log(n) == log(float(n)) for small integers n.

As a nice side-effect, this change guarantees that on a machine where log10 has reasonable accuracy (e.g., accurate to within 0.9 ulps or so), log10(10**n)==n for any nonnegative integer n such that 10**n is within the range of a double.
History
Date User Action Args
2010-09-29 19:14:09mark.dickinsonsetrecipients: + mark.dickinson, rhettinger, akira
2010-09-29 19:14:08mark.dickinsonsetmessageid: <1285787648.94.0.651606000534.issue9959@psf.upfronthosting.co.za>
2010-09-29 19:14:07mark.dickinsonlinkissue9959 messages
2010-09-29 19:14:07mark.dickinsoncreate