You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
The docstring for
heapdict.popitem()
states that it will raiseKeyError
if the heap is empty. However, the actual behaviour is that anIndexError
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.
The text was updated successfully, but these errors were encountered: