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

move_only_function: more concise Python script #2429

Merged
merged 2 commits into from
Jan 20, 2022

Conversation

AlexGuteniev
Copy link
Contributor

TIL what is string interpolation

TIL what is string interpolation
@AlexGuteniev AlexGuteniev requested a review from a team as a code owner December 17, 2021 21:31
@AlexGuteniev AlexGuteniev changed the title More concise Python script move_only_function: more concise Python script Dec 17, 2021
@StephanTLavavej StephanTLavavej added the enhancement Something can be improved label Dec 17, 2021
@StephanTLavavej

This comment has been minimized.

@cbezault cbezault removed their assignment Jan 14, 2022
@StephanTLavavej
Copy link
Member

Verified that the script's output still matches the product code, again.



print(cvref_permutations("", "false", "is_invocable_r_v") + "\n" \
+ "#ifdef __cpp_noexcept_function_type" + "\n" \
Copy link
Member

Choose a reason for hiding this comment

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

"..." + "..." is a bit silly when we can simply concatenate the two strings. Not worth resetting testing, however.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I preferred this way for consistency with other occurrences where "\n" is a separate string

@StephanTLavavej StephanTLavavej self-assigned this Jan 19, 2022
@StephanTLavavej
Copy link
Member

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

@StephanTLavavej StephanTLavavej merged commit de24597 into microsoft:main Jan 20, 2022
@StephanTLavavej
Copy link
Member

Thanks for improving code clarity of this script! 🐍 👓 😸

@AlexGuteniev AlexGuteniev deleted the interpolation branch January 20, 2022 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Something can be improved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
  翻译: