Skip to content

refactoring code with For Else #2544

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

Merged
merged 1 commit into from
Jan 21, 2022
Merged

Conversation

idiomaticrefactoring
Copy link
Contributor

refactoring code with For Else which is more pythonic, concise and efficient; how do you think this change which has practical value?

refactoring code with For Else which is more pythonic, concise and efficient
@tshirtman
Copy link
Member

While i think refactoring should be incidental, when needed, rather than for the sake of it, (or else we end up refactoring needlessly), this is indeed more natural, so i'm fine with it. :)

@tshirtman tshirtman merged commit 17aa3e2 into kivy:master Jan 21, 2022
@misl6
Copy link
Member

misl6 commented Jan 23, 2022

Ouch! That was merged into master instead of develop.

@AndreMiras
Copy link
Member

Ouch I missed that too 🤦 thanks for the heads up.
I imagine we could cherry pick back to develop to have them align for next release.
Or we could simply revert it or do we have other idea?

@misl6
Copy link
Member

misl6 commented Jan 23, 2022

It's a really minor cosmetic change, so doesn't really change anything for users that are targeting master.
As we did in past I think is great to cherry-pick it to develop, without reverting the master, then will be aligned during next release.

misl6 pushed a commit to misl6/python-for-android that referenced this pull request Jan 23, 2022
refactoring code with For Else which is more pythonic, concise and efficient
@misl6 misl6 mentioned this pull request Jan 23, 2022
misl6 added a commit that referenced this pull request Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants