Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #85832

Closed
weagjoigjowe mannequin opened this issue Aug 30, 2020 · 3 comments
Closed

fix #85832

weagjoigjowe mannequin opened this issue Aug 30, 2020 · 3 comments
Labels
3.8 only security fixes

Comments

@weagjoigjowe
Copy link
Mannequin

weagjoigjowe mannequin commented Aug 30, 2020

BPO 41666
Nosy @stevendaprano, @tirkarthi

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2020-08-30.12:40:24.840>
created_at = <Date 2020-08-30.12:22:16.763>
labels = ['invalid', '3.8']
title = 'fix'
updated_at = <Date 2020-08-30.13:17:16.909>
user = 'https://bugs.python.org/weagjoigjowe'

bugs.python.org fields:

activity = <Date 2020-08-30.13:17:16.909>
actor = 'steven.daprano'
assignee = 'none'
closed = True
closed_date = <Date 2020-08-30.12:40:24.840>
closer = 'xtreak'
components = []
creation = <Date 2020-08-30.12:22:16.763>
creator = 'weagjoigjowe'
dependencies = []
files = []
hgrepos = []
issue_num = 41666
keywords = []
message_count = 3.0
messages = ['376104', '376105', '376107']
nosy_count = 2.0
nosy_names = ['steven.daprano', 'xtreak']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = 'resolved'
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue41666'
versions = ['Python 3.8']

@weagjoigjowe
Copy link
Mannequin Author

weagjoigjowe mannequin commented Aug 30, 2020

Hi, I found a problem with this address
https://docs.python.org/3/tutorial/introduction.html#strings

In here
>>> word[0:2]  # characters from position 0 (included) to 2 (excluded)
'Py'
>>> word[2:5]  # characters from position 2 (included) to 5 (excluded)
'tho'

In the second example word[2:5] becomes 'hto'

@weagjoigjowe weagjoigjowe mannequin added 3.8 only security fixes labels Aug 30, 2020
@weagjoigjowe weagjoigjowe mannequin changed the title Problem in tutorial/introduction.html#strings fix Aug 30, 2020
@weagjoigjowe weagjoigjowe mannequin changed the title Problem in tutorial/introduction.html#strings fix Aug 30, 2020
@tirkarthi
Copy link
Member

Closing this as not a bug since the example seems to be correct. Feel free to reopen with more details if needed.

@stevendaprano
Copy link
Member

I agree with xtreak. I guess you probably misspelled the initial word:

>>> 'Python'[2:5]  # same as the tutorial
'tho'

>>> 'Pyhton'[2:5]  # misspelling
'hto'

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.8 only security fixes
Projects
None yet
Development

No branches or pull requests

2 participants