Skip to content

heapq __all__ not updated for the maxheap methods #137239

@rhettinger

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

Metadata

Metadata

Labels

3.14bugs and security fixes3.15new features, bugs and security fixeseasyextension-modulesC modules in the Modules dirstdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions