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

"Room for names" in dictionary comprehensions #205

Closed
copumpkin opened this issue Jun 6, 2016 · 4 comments
Closed

"Room for names" in dictionary comprehensions #205

copumpkin opened this issue Jun 6, 2016 · 4 comments

Comments

@copumpkin
Copy link

When I'm writing something of the form { [k]: v for foo in bar }, if there's a big common subexpression between k and v, I don't think there's a place for me to abstract it out.

@sparkprime
Copy link
Contributor

Duplicate of #90

@copumpkin
Copy link
Author

Oh sorry! I'll close this

@sparkprime
Copy link
Contributor

No worries, I had to dig to the second page to find it ;)

@sparkprime
Copy link
Contributor

Specifically you'd write:

{ [big]: big for foo in bar local big = ... }

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

No branches or pull requests

2 participants