Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Maxheap version of a heappush #110067

Closed
Closed
Assignees
rhettinger
Labels
extension-modulesC modules in the Modules dirstdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement
@coopers

Description

@coopers

Feature or enhancement

Proposal:

def_heappush_max(heap,item):"""Maxheap version of a heappush."""heap.append(item)_siftdown_max(heap,0,len(heap)-1)

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

conversation on making max heap functions public

Linked PRs

Metadata

Metadata

Assignees

Labels

extension-modulesC modules in the Modules dirstdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp