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 airwin
Recipients airwin, docs@python, r.david.murray
Date 2016-11-04.20:13:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1478290411.43.0.465418337088.issue28614@psf.upfronthosting.co.za>
In-reply-to
Content
You can easily prove the limit is correct for real numbers.  So I would be willing to accept as a resolution of this issue that the type of division that is going on here is real.  However, that is a bit disquieting since if you try a real slice index you get "TypeError: slice indices must be integers or None or have an __index__ method". Thus, m < real limit test is a comparison of an integer and real which implies m gets changed to real before the comparison. Which obviously gives the correct result in the 1.5 case, but in general I dislike real comparisons where the distinction between < and <=, for example, can get blurred because of potential roundoff issues with reals.  So I think my suggested one-sentence resolution to the issue is better then updating the documentation to clarify what kind of division is occurring in the limit.
History
Date User Action Args
2016-11-04 20:13:31airwinsetrecipients: + airwin, r.david.murray, docs@python
2016-11-04 20:13:31airwinsetmessageid: <1478290411.43.0.465418337088.issue28614@psf.upfronthosting.co.za>
2016-11-04 20:13:31airwinlinkissue28614 messages
2016-11-04 20:13:31airwincreate