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: Added max heap push
Type: enhancement Stage: resolved
Components: Library (Lib) Versions: Python 3.11
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: paul.moore, rhettinger, ritavdas, steve.dower, tim.golden
Priority: normal Keywords:

Created on 2021-07-09 12:56 by ritavdas, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 27046 ritavdas, 2021-07-09 12:56
Messages (3)
msg397197 - (view) Author: Ritav Das (ritavdas) * Date: 2021-07-09 12:56
Added a heap push method for the max heap invariant and added try except block at the end so the user can import that function from the library.
msg397198 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2021-07-09 15:13
Thanks for the suggestion, but only the minheap functions are public.  The maxheap functions are private, for internal use only.  Currently, there is no internal need for a maxheap push.
msg397201 - (view) Author: Ritav Das (ritavdas) * Date: 2021-07-09 15:19
But why not? It's plays a very pivotal role when in competitive coding and solving python coding questions in general.

Making them public would help thousands of fellow coders like me by making this process more convenient.
History
Date User Action Args
2022-04-11 14:59:47adminsetgithub: 88757
2021-07-09 15:19:56ritavdassetstatus: pending -> closed
resolution: later -> rejected
2021-07-09 15:19:34ritavdassetstatus: closed -> pending
resolution: rejected -> later
messages: + msg397201
2021-07-09 15:13:40rhettingersetstatus: open -> closed
resolution: rejected
messages: + msg397198

stage: patch review -> resolved
2021-07-09 14:51:32zach.waresetnosy: + rhettinger, - zach.ware
stage: patch review
components: + Library (Lib), - Windows
versions: + Python 3.11, - Python 3.9
2021-07-09 12:56:42ritavdassettitle: Added man heap push -> Added max heap push
2021-07-09 12:56:18ritavdascreate