◐ Shell
reader mode source ↗
Skip to content

bpo-10544: Deprecate "yield" in comprehensions and generator expressions.#4579

Merged
ncoghlan merged 14 commits into
python:masterfrom
serhiy-storchaka:deprecate-yield-in-comprehensions
Dec 1, 2017
Merged

bpo-10544: Deprecate "yield" in comprehensions and generator expressions.#4579
ncoghlan merged 14 commits into
python:masterfrom
serhiy-storchaka:deprecate-yield-in-comprehensions

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Nov 27, 2017

Copy link
Copy Markdown
Member

@ncoghlan

Copy link
Copy Markdown
Contributor

@serhiy-storchaka Do you mind if I just edit some of the docs wording directly? I think that will be easier than trying to describe the edits I would recommend.

@serhiy-storchaka

Copy link
Copy Markdown
Member Author

I will be grateful if you do this.

- updated the comprehension scoping definition to use
  some of the words from the generator expression definition
- added appropriate versionadded/changed directives
-
@ncoghlan

Copy link
Copy Markdown
Contributor

OK, I've made my documentation edits.

@gvanrossum I think it would be helpful if you could review the proposed language reference updates directly, or else nominate someone else to do so.

@gvanrossum gvanrossum 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.

Hide comment

Here are some suggestions to tighten the docs. Thanks to both of you for taking care of this!

- consistently use "leftmost" (never "outermost")
- explicitly exclude the filter condition from eager evaluation
- better align wording for comprehensions and generator expressions
@gvanrossum

Copy link
Copy Markdown
Member

Docs LGTM now.

@serhiy-storchaka

Copy link
Copy Markdown
Member Author

Ping.

@ncoghlan ncoghlan merged commit 73a7e9b into python:master Dec 1, 2017
@serhiy-storchaka serhiy-storchaka deleted the deprecate-yield-in-comprehensions branch December 1, 2017 06:23
@serhiy-storchaka

Copy link
Copy Markdown
Member Author

Thank you for your documentation changes @ncoghlan!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants