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

Use list comprehension #14362

Merged
merged 1 commit into from Jul 7, 2021
Merged

Use list comprehension #14362

merged 1 commit into from Jul 7, 2021

Conversation

jakobjakobson13
Copy link
Contributor

No description provided.

Copy link
Member

@rkern rkern left a comment

Choose a reason for hiding this comment

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

LGTM!

@tylerjereddy
Copy link
Contributor

Ok, I will merge it in--I'm guessing this is mostly for clarity.

There's some discussion of potential performance benefits here, though I'd imagine one would have to check on a case-by-case basis maybe: https://stackoverflow.com/a/1247490/2942522

@tylerjereddy tylerjereddy merged commit 4a4ca22 into scipy:master Jul 7, 2021
@tylerjereddy
Copy link
Contributor

thanks @jakobjakobson13 and Robert

@tylerjereddy tylerjereddy added this to the 1.8.0 milestone Jul 7, 2021
@tylerjereddy tylerjereddy added the maintenance Items related to regular maintenance tasks label Jul 7, 2021
@rkern
Copy link
Member

rkern commented Jul 7, 2021

Yeah, it's just the idiomatic way to write this. Also, we probably did want to return a true list instead of map's normal iterable.

@jakobjakobson13 jakobjakobson13 deleted the use_comprehensions branch July 9, 2021 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Items related to regular maintenance tasks scipy.special
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants