This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: No _heappush_max()
Type: Stage: resolved
Components: Library (Lib) Versions: Python 3.11, Python 3.10, Python 3.9, Python 3.8, Python 3.7, Python 3.6
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: rhettinger, stutzbach
Priority: normal Keywords:

Created on 2021-09-21 19:16 by ThomasLee94, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg402351 - (view) Author: Thomas (ThomasLee94) Date: 2021-09-21 19:16
There is no heappush function for a max heap when the other supporting helper functions are already implemented (_siftdown_max())
msg402403 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2021-09-21 23:33
The underscore functions are private and for internal use.  There is no _heappush_max() because we didn't need it internally and it would just be dead code.

Thanks for the report.
History
Date User Action Args
2022-04-11 14:59:50adminsetgithub: 89422
2021-09-21 23:33:03rhettingersetstatus: open -> closed
resolution: not a bug
messages: + msg402403

stage: resolved
2021-09-21 19:32:47ThomasLee94setversions: + Python 3.6, Python 3.7, Python 3.8, Python 3.10, Python 3.11
2021-09-21 19:27:31ThomasLee94setnosy: + rhettinger, stutzbach, - ThomasLee94
2021-09-21 19:16:06ThomasLee94create