Skip to content

Fix the output of built-in iter() function example in Iterators (Section 9.8) of The Python Tutorial#30110

Merged
Fidget-Spinner merged 1 commit into
python:mainfrom
vivekvashist:fix_classes_tutorial_output
Dec 16, 2021
Merged

Fix the output of built-in iter() function example in Iterators (Section 9.8) of The Python Tutorial#30110
Fidget-Spinner merged 1 commit into
python:mainfrom
vivekvashist:fix_classes_tutorial_output

Conversation

@vivekvashist

Copy link
Copy Markdown
Contributor

Updated the output for it=iter(s) from <iterator object at 0x00A1DB50> to <str_iterator object at 0x10c90e650>

>>> s = 'abc'
>>> it = iter(s)
>>> it
<str_iterator object at 0x10c90e650>

Updated the output for it=iter(s) from <iterator object at 0x00A1DB50> to <str_iterator object at 0x10c90e650>

>>> s = 'abc'
>>> it = iter(s)
>>> it
<str_iterator object at 0x10c90e650>
@AlexWaygood

This comment has been minimized.

@vivekvashist vivekvashist changed the title Update classes.rst doc Fix the output of built-in iter() function example in Iterators (Section 9.8) of The Python Tutorial Dec 15, 2021

@Fidget-Spinner Fidget-Spinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I verified that that's the new repr from 3.9 - main. Thanks for your contribution Vivek!

@Fidget-Spinner Fidget-Spinner merged commit c5d18a5 into python:main Dec 16, 2021
@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @vivekvashist for the PR, and @Fidget-Spinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9, 3.10.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 16, 2021
…ion 9.8) of The Python Tutorial (pythonGH-30110)

Updated the output for it=iter(s) from <iterator object at 0x00A1DB50> to <str_iterator object at 0x10c90e650>
(cherry picked from commit c5d18a5)

Co-authored-by: Vivek Vashist <vivekvashist@gmail.com>
@bedevere-bot bedevere-bot removed the needs backport to 3.10 only security fixes label Dec 16, 2021
@bedevere-bot

Copy link
Copy Markdown

GH-30136 is a backport of this pull request to the 3.10 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 16, 2021
…ion 9.8) of The Python Tutorial (pythonGH-30110)

Updated the output for it=iter(s) from <iterator object at 0x00A1DB50> to <str_iterator object at 0x10c90e650>
(cherry picked from commit c5d18a5)

Co-authored-by: Vivek Vashist <vivekvashist@gmail.com>
@bedevere-bot

Copy link
Copy Markdown

GH-30137 is a backport of this pull request to the 3.9 branch.

miss-islington added a commit that referenced this pull request Dec 16, 2021
…ion 9.8) of The Python Tutorial (GH-30110)

Updated the output for it=iter(s) from <iterator object at 0x00A1DB50> to <str_iterator object at 0x10c90e650>
(cherry picked from commit c5d18a5)

Co-authored-by: Vivek Vashist <vivekvashist@gmail.com>
miss-islington added a commit that referenced this pull request Dec 16, 2021
…ion 9.8) of The Python Tutorial (GH-30110)

Updated the output for it=iter(s) from <iterator object at 0x00A1DB50> to <str_iterator object at 0x10c90e650>
(cherry picked from commit c5d18a5)

Co-authored-by: Vivek Vashist <vivekvashist@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip issue skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants