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

GH-112498 Add heapremove and heapfix #112550

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

kristjanvalur
Copy link
Contributor

@kristjanvalur kristjanvalur commented Nov 30, 2023

This is an alternative PR to #112497 which adds two functions, heapfix and heapremove.
This is perhaps better, since the use cases are different. heappop becomes a special case of heapremove and

It corresponds to what golang does in https://pkg.go.dev/container/heap


📚 Documentation preview 📚: https://cpython-previews--112550.org.readthedocs.build/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants