Terry J. Reedy added the comment:

n < (j-i)/k is a straightforward translation of i + n*k < j, and vice verse, 
where / is rational division.  It is incorrect to integerize the result and the 
doc does not say to do so.  In Python 3, there is no ambiguity, and the doc is 
*not* incorrect, and does not need to be changed.  In Python 2, I think it 
still clear enough, but we could add "(where / indicates rational division)'.  
However, I also think this might be too nitpicky.  I am inclined to think that 
this should be closed.

----------
nosy: +terry.reedy
title: Slice limit documentation is incorrect -> Slice limit documentation 
could be interpreted in Python 2.

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28614>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to