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
Small improvements in heapq (refactoring) #78391
Comments
I would like to make three small improvements to the "heapq" module.
for i in reversed(range(n//2)): will be more optimal in this version: for i in range(n//2 + 1, -1, -1):
|
Sorry, I don't consider any of these changes to be improvements and some make the code worse in some ways, overriding intentional coding decisions. |
Additional notes:
|
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: