[issue28614] Slice limit documentation is incorrect

2016-11-04 Thread R. David Murray
R. David Murray added the comment: The formula is documenting the behavior, not the implementation. So the formula is a mathematical formula that assumes infinite precision, not a floating point calculation. I always thought that was clear by context and phrasing, but perhaps I'm wrong. ---

[issue28614] Slice limit documentation is incorrect

2016-11-04 Thread airwin
airwin added the comment: 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 "TypeErr

[issue28614] Slice limit documentation is incorrect

2016-11-04 Thread R. David Murray
R. David Murray added the comment: My guess is that the formula is not using integer division. There are two elements, n=0, and n=1. 1 is less than 1.5. In python2 it would be a natural assumption that that formula was referring to python2 division, and that should be clarified if I'm right

[issue28614] Slice limit documentation is incorrect

2016-11-04 Thread airwin
New submission from airwin: Note 5 (at for Python 2 and at for Python 3) concerning s[i:j:k] (the slice