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

Docstring for popitem() mentions incorrect error type #16

Open
Stef-Sijben opened this issue Dec 22, 2020 · 0 comments
Open

Docstring for popitem() mentions incorrect error type #16

Stef-Sijben opened this issue Dec 22, 2020 · 0 comments

Comments

@Stef-Sijben
Copy link

The docstring for heapdict.popitem() states that it will raise KeyError if the heap is empty. However, the actual behaviour is that an IndexError is raised (in Python 3.9.0), which makes sense for indexing into an empty list.

It would be nice if the docstring matches the actual behaviour of the function.

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

No branches or pull requests

1 participant