[issue29018] Misinformation when showing how slices work in The Tutorial

2016-12-23 Thread issuefinder
issuefinder added the comment: You seem to be right. Sorry about the incovenience. -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue29018] Misinformation when showing how slices work in The Tutorial

2016-12-19 Thread Steven D'Aprano
Steven D'Aprano added the comment: You haven't given any reason to explain why you think the existing docs are wrong, nor any reason why you think your version is better. Just stating that the docs give "misinformation" is not good enough. By your matrix, 'Python'[0:-1] should take a slice sta

[issue29018] Misinformation when showing how slices work in The Tutorial

2016-12-19 Thread R. David Murray
R. David Murray added the comment: If your version was correct, 'python'[-2:] would produce 'n', which is not what it produces. Perhaps you being confused by the fact that the diagram is pointing the indexes *between* the characters? That's the point of the mnemonic and I find it very useful

[issue29018] Misinformation when showing how slices work in The Tutorial

2016-12-19 Thread issuefinder
New submission from issuefinder: In this page: https://docs.python.org/3/tutorial/introduction.html#strings When showing how slices work: +---+---+---+---+---+---+ | P | y | t | h | o | n | +---+---+---+---+---+---+ 0 1 2 3 4 5 6 -6 -5 -4 -3 -2 -1 The accurate matrix is: +-