Skip to content

heapq __all__ not updated for the maxheap methods #137239

Closed

Description

@rhettinger

Currently we have:

>>> import heapq
>>> heapq.__all__
['heappush', 'heappop', 'heapify', 'heapreplace', 'merge', 'nlargest', 'nsmallest', 'heappushpop']

This should be:

['heapify', 'heapify_max', 'heappop', 'heappop_max',
'heappush', 'heappush_max', 'heappushpop',
'heappushpop_max', 'heapreplace', 'heapreplace_max',
'merge', 'nlargest', 'nsmallest']

Linked PRs

Activity

  1. added
    type-bug
    3.14
    3.15
    on Jul 30, 2025
  2. added
    stdlib
    extension-modules
    on Jul 30, 2025
  3. added a commit that references this issue on Jul 30, 2025
  4. added a commit that references this issue on Jul 30, 2025
  5. added a commit that references this issue on Aug 19, 2025
  6. added a commit that references this issue on Oct 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

3.143.15easyextension-modulesstdlibtype-bug

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions