Uh oh!
There was an error while loading. Please reload this page.
Update copy.py - #104570
Conversation
I think that some code was being repeated because of an if else condition. I tried to combine them into one. Would loved to know the thoughts of the community.
bedevere-bot
commented
May 17, 2023
Most changes to Python require a NEWS entry. Please add it using the blurb_it web app or the blurb command-line tool. |
sunmy2019
commented
May 17, 2023
What we have done here is called https://en.wikipedia.org/wiki/Loop_unswitching It may cause a performance penalty. Have you done benchmarks? |
Hello! |
AlexWaygood
commented
May 17, 2023
@arhadthedev, please don't add "skip issue" and "skip news" to PRs like this:
|
bedevere-bot
commented
May 17, 2023
Most changes to Python require a NEWS entry. Please add it using the blurb_it web app or the blurb command-line tool. |
@rajucomp, thank you for the PR! I agree that the code looks slightly simpler and less repetitive this way. However, I'm going to reject this PR, for three reasons:
Thanks again for the PR, though, and for your interest in improving CPython! |
I think that some code was being repeated because of an if else condition. I tried to combine them into one. Would loved to know the thoughts of the community.