-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Deprecate dict comprehension construction in favor for Generator #16510
Milestone
Comments
dhoegh
changed the title
Deprecate dict comprehension construction infavor for Generator
Deprecate dict comprehension construction in favor for Generator
May 22, 2016
JeffBezanson
added a commit
that referenced
this issue
May 25, 2016
deprecate dict comprehension syntax. fixes #16510
This could use an entry in NEWS.md |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As the new Generator syntax matches nicely with the construction of dictionaries. I propose using generators instead of using the comprehensions syntax to construct dictionaries as the generator syntax is closer to the syntax for manually initialization of the dictionaries. This should be deprecated:
In favor for:
The deprecation will match the deprecation in:
The text was updated successfully, but these errors were encountered: