[issue22553] Diagram issue

2014-10-04 Thread Eric Fulton
New submission from Eric Fulton: I believe the diagram showing how slices works from https://docs.python.org/2/tutorial/introduction.html is incorrect. There should be no 6. word = 'Python' word[6] IndexError: string index out of range Original: +---+---+---+---+---+---+ | P | y | t

[issue22553] Diagram issue

2014-10-04 Thread Georg Brandl
Georg Brandl added the comment: Hi Eric, this paragraph is about slices, where you *can* do word[0:6] 'Python' As such, the paragraph is correct. -- nosy: +georg.brandl resolution: - not a bug status: open - closed ___ Python tracker