Skip to content

gh-135171: Update documentation for the generator expression - #135351

Merged
gpshead merged 2 commits into
python:mainfrom
serhiy-storchaka:docs-genexpr-outmost-iterator
Jun 15, 2025
Merged

gh-135171: Update documentation for the generator expression#135351
gpshead merged 2 commits into
python:mainfrom
serhiy-storchaka:docs-genexpr-outmost-iterator

Conversation

@serhiy-storchaka

@serhiy-storchakaserhiy-storchaka commented Jun 10, 2025

Copy link
Copy Markdown
Member

Document that the iterator for the leftmost "for" clause is created immediately.


📚 Documentation preview 📚: https://cpython-previews--135351.org.readthedocs.build/

Document that the iterator for the leftmost "for" clause is created
immediately.
Comment threadDoc/reference/expressions.rst
Comment threadDoc/reference/expressions.rst
Co-authored-by: Brian Skinn <brian.skinn@gmail.com>
@gpshead
gpshead merged commit 8979d3a into python:mainJun 15, 2025
@miss-islington-app

Copy link
Copy Markdown

Thanks @serhiy-storchaka for the PR, and @gpshead for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

@github-project-automationgithub-project-automationBot moved this from Todo to Done in Docs PRsJun 15, 2025
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 15, 2025
…ythonGH-135351)
* pythongh-135171: Update documentation for the generator expression
Document that the iterator for the leftmost "for" clause is created
immediately.
* Update Doc/reference/expressions.rst
Co-authored-by: Brian Skinn <brian.skinn@gmail.com>
---------
(cherry picked from commit 8979d3a)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Brian Skinn <brian.skinn@gmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 15, 2025
…ythonGH-135351)
* pythongh-135171: Update documentation for the generator expression
Document that the iterator for the leftmost "for" clause is created
immediately.
* Update Doc/reference/expressions.rst
Co-authored-by: Brian Skinn <brian.skinn@gmail.com>
---------
(cherry picked from commit 8979d3a)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Brian Skinn <brian.skinn@gmail.com>
@bedevere-app

Copy link
Copy Markdown

GH-135524 is a backport of this pull request to the 3.14 branch.

@bedevere-appbedevere-appBot removed the needs backport to 3.14 bugs and security fixes label Jun 15, 2025
@bedevere-app

Copy link
Copy Markdown

GH-135525 is a backport of this pull request to the 3.13 branch.

@bedevere-appbedevere-appBot removed the needs backport to 3.13 bugs and security fixes label Jun 15, 2025
gpshead pushed a commit that referenced this pull request Jun 15, 2025
…H-135351) (#135524)
gh-135171: Update documentation for the generator expression (GH-135351)
* gh-135171: Update documentation for the generator expression
Document that the iterator for the leftmost "for" clause is created
immediately.
* Update Doc/reference/expressions.rst
---------
(cherry picked from commit 8979d3a)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Brian Skinn <brian.skinn@gmail.com>
gpshead pushed a commit that referenced this pull request Jun 15, 2025
…H-135351) (GH-135525)
gh-135171: Update documentation for the generator expression (GH-135351)
* gh-135171: Update documentation for the generator expression
Document that the iterator for the leftmost "for" clause is created
immediately.
* Update Doc/reference/expressions.rst
---------
(cherry picked from commit 8979d3a)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Brian Skinn <brian.skinn@gmail.com>
shuimu5418 pushed a commit to shuimu5418/cpython001 that referenced this pull request Jun 16, 2025
…ythonGH-135351)
* pythongh-135171: Update documentation for the generator expression
Document that the iterator for the leftmost "for" clause is created
immediately.
* Update Doc/reference/expressions.rst
Co-authored-by: Brian Skinn <brian.skinn@gmail.com>
---------
Co-authored-by: Brian Skinn <brian.skinn@gmail.com>
lkollar pushed a commit to lkollar/cpython that referenced this pull request Jun 19, 2025
…ythonGH-135351)
* pythongh-135171: Update documentation for the generator expression
Document that the iterator for the leftmost "for" clause is created
immediately.
* Update Doc/reference/expressions.rst
Co-authored-by: Brian Skinn <brian.skinn@gmail.com>
---------
Co-authored-by: Brian Skinn <brian.skinn@gmail.com>
Pranjal095 pushed a commit to Pranjal095/cpython that referenced this pull request Jul 12, 2025
…ythonGH-135351)
* pythongh-135171: Update documentation for the generator expression
Document that the iterator for the leftmost "for" clause is created
immediately.
* Update Doc/reference/expressions.rst
Co-authored-by: Brian Skinn <brian.skinn@gmail.com>
---------
Co-authored-by: Brian Skinn <brian.skinn@gmail.com>
taegyunkim pushed a commit to taegyunkim/cpython that referenced this pull request Aug 4, 2025
…ythonGH-135351)
* pythongh-135171: Update documentation for the generator expression
Document that the iterator for the leftmost "for" clause is created
immediately.
* Update Doc/reference/expressions.rst
Co-authored-by: Brian Skinn <brian.skinn@gmail.com>
---------
Co-authored-by: Brian Skinn <brian.skinn@gmail.com>
Agent-Hellboy pushed a commit to Agent-Hellboy/cpython that referenced this pull request Aug 19, 2025
…ythonGH-135351)
* pythongh-135171: Update documentation for the generator expression
Document that the iterator for the leftmost "for" clause is created
immediately.
* Update Doc/reference/expressions.rst
Co-authored-by: Brian Skinn <brian.skinn@gmail.com>
---------
Co-authored-by: Brian Skinn <brian.skinn@gmail.com>
@serhiy-storchaka
serhiy-storchaka deleted the docs-genexpr-outmost-iterator branch July 1, 2026 16:47
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docsDocumentation in the Doc dir

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants

@serhiy-storchaka@gpshead@Yhg1s@efimov-mikhail@bskinn