Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
pythoncapi
cpython
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
cpython
Modules
_heapqmodule.c
on
pythoncapi
User selector
All users
Datepicker
All time
Commit history
Commits on Apr 15, 2016
Issue #15984: Merge PyUnicode doc from 3.5
vadmium
committed
cda8094
View commit details
Copy full SHA for cda8094
View code at this point
Browse repository at this point
Correct “an” → “a” with “Unicode”, “user”, “UTF”, etc
Show description for 6245cb3
vadmium
committed
6245cb3
View commit details
Copy full SHA for 6245cb3
View code at this point
Browse repository at this point
Commits on Dec 8, 2015
Only update the arr variable when PyObject_RichCompareBool() has been called.
rhettinger
committed
2300bf2
View commit details
Copy full SHA for 2300bf2
View code at this point
Browse repository at this point
Commits on Jul 20, 2015
Divisions-by-two for a positive Py_ssize_t compile more cleanly with >>1 than /2.
rhettinger
committed
cfe5b6c
View commit details
Copy full SHA for cfe5b6c
View code at this point
Browse repository at this point
Commits on May 22, 2015
Issue #24221: Small optimizations for heapq.
Show description for 5cbd833
rhettinger
committed
5cbd833
View commit details
Copy full SHA for 5cbd833
View code at this point
Browse repository at this point
Commits on May 16, 2015
Tighten-up code by eliminating an unnecessary variable.
rhettinger
committed
c784c6d
View commit details
Copy full SHA for c784c6d
View code at this point
Browse repository at this point
Minor code clean-up.
rhettinger
committed
d69755d
View commit details
Copy full SHA for d69755d
View code at this point
Browse repository at this point
Commits on May 13, 2015
More timings suggest that 2500 is closer to the break-even point.
rhettinger
committed
6364880
View commit details
Copy full SHA for 6364880
View code at this point
Browse repository at this point
Commits on May 12, 2015
merge
rhettinger
committed
4e6bf4b
View commit details
Copy full SHA for 4e6bf4b
View code at this point
Browse repository at this point
Defend against a mutation during comparison
rhettinger
committed
b9db9e1
View commit details
Copy full SHA for b9db9e1
View code at this point
Browse repository at this point
Minor code cleanups.
rhettinger
committed
99bf9a2
View commit details
Copy full SHA for 99bf9a2
View code at this point
Browse repository at this point
Commits on May 11, 2015
Minor stylistic clean-up.
rhettinger
committed
a032e46
View commit details
Copy full SHA for a032e46
View code at this point
Browse repository at this point
Issue #24155: Optimize heapify for better cache utililzation.
rhettinger
committed
bc33e57
View commit details
Copy full SHA for bc33e57
View code at this point
Browse repository at this point
Commits on May 2, 2015
Issues #24099, #24100, and #24101: Fix free-after-use bug in heapq.
rhettinger
committed
1dd8e71
View commit details
Copy full SHA for 1dd8e71
View code at this point
Browse repository at this point
Commits on Jun 14, 2014
Factor common code into internal functions.
Show description for 48f68d0
rhettinger
committed
48f68d0
View commit details
Copy full SHA for 48f68d0
View code at this point
Browse repository at this point
Commits on May 11, 2014
Issue 21424: Apply the nlargest() optimizations to nsmallest() as well.
rhettinger
committed
234fb2d
View commit details
Copy full SHA for 234fb2d
View code at this point
Browse repository at this point
Issue #21424: Optimize heaqp.nlargest() to make fewer tuple comparisons.
Show description for 277842e
rhettinger
committed
277842e
View commit details
Copy full SHA for 277842e
View code at this point
Browse repository at this point
Commits on May 4, 2014
Neaten-up a bit add add missing size change check.
rhettinger
committed
90e9338
View commit details
Copy full SHA for 90e9338
View code at this point
Browse repository at this point
Simplify and speedup the internals of the heapq module.
rhettinger
committed
871620d
View commit details
Copy full SHA for 871620d
View code at this point
Browse repository at this point
Commits on May 3, 2014
Issue 21375: Fix possible Py_ssizet overflow in heapq.
rhettinger
committed
c992608
View commit details
Copy full SHA for c992608
View code at this point
Browse repository at this point
Commits on Jul 17, 2013
Issue #18408: Fix heapq.heappop(), handle PyList_SetSlice() failure
vstinner
committed
764a46d
View commit details
Copy full SHA for 764a46d
View code at this point
Browse repository at this point
Commits on Mar 11, 2013
Merge 3.2, Issue #17047: remove doubled words found in 2.7 to 3.4
Show description for 09b7503
terryjreedy
committed
09b7503
View commit details
Copy full SHA for 09b7503
View code at this point
Browse repository at this point
Issue #17047: remove doubled words found in 2.7 to 3.4 Modules/*,
Show description for 0158af3
terryjreedy
committed
0158af3
View commit details
Copy full SHA for 0158af3
View code at this point
Browse repository at this point
Commits on Mar 4, 2013
Issue #17278: Fix a crash in heapq.heappush() and heapq.heappop() when the list is being resized concurrently.
pitrou
committed
31584e3
View commit details
Copy full SHA for 31584e3
View code at this point
Browse repository at this point
Issue #17278: Fix a crash in heapq.heappush() and heapq.heappop() when the list is being resized concurrently.
pitrou
committed
44d5214
View commit details
Copy full SHA for 44d5214
View code at this point
Browse repository at this point
Commits on Jan 19, 2013
Show the function signature in the docstring
rhettinger
committed
bd8f290
View commit details
Copy full SHA for bd8f290
View code at this point
Browse repository at this point
Commits on Sep 5, 2010
Inline cmp_lt().
rhettinger
committed
db6b62e
View commit details
Copy full SHA for db6b62e
View code at this point
Browse repository at this point
Commits on Sep 3, 2010
Fix invalid bytes for UTF-8
merwok
committed
1670b43
View commit details
Copy full SHA for 1670b43
View code at this point
Browse repository at this point
Commits on May 9, 2010
Recorded merge of revisions 81029 via svnmerge from
Show description for f95a1b3
pitrou
committed
f95a1b3
View commit details
Copy full SHA for f95a1b3
View code at this point
Browse repository at this point
Commits on Jun 17, 2008
Remove 2.6 compatibility code:
Show description for 2ba198d
amauryfa
committed
2ba198d
View commit details
Copy full SHA for 2ba198d
View code at this point
Browse repository at this point
Merged revisions 64089,64098,64100-64102,64113,64115-64116,64118,64120,64132,64342 via svnmerge from
Show description for fdfe62d
amauryfa
committed
fdfe62d
View commit details
Copy full SHA for fdfe62d
View code at this point
Browse repository at this point
Commits on Jun 11, 2008
Implement PEP 3121: new module initialization and finalization API.
loewis
committed
1a21451
View commit details
Copy full SHA for 1a21451
View code at this point
Browse repository at this point
Commits on Jun 10, 2008
Merged revisions 63562,63570,63728,63734,63784,63788,63802,63817,63827,63839,63887,63975,63998 via svnmerge from
Show description for f78e02b
birkenfeld
committed
f78e02b
View commit details
Copy full SHA for f78e02b
View code at this point
Browse repository at this point
Commits on Mar 16, 2008
Merged revisions 61239-61249,61252-61257,61260-61264,61269-61275,61278-61279,61285-61286,61288-61290,61298,61303-61305,61312-61314,61317,61329,61332,61344,61350-61351,61363-61376,61378-61379,61382-…
Show description for dd15f6c
tiran
committed
dd15f6c
View commit details
Copy full SHA for dd15f6c
View code at this point
Browse repository at this point
Commits on Aug 23, 2007
Use UTF-8 for a docstring that contains non-ASCII chars.
nnorwitz
committed
c1786ea
View commit details
Copy full SHA for c1786ea
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.