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 }}
python
cpython
Repository navigation
Code
Issues
5k+
(5k+)
Pull requests
2.4k
(2.4k)
Actions
Projects
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
cpython
Modules
_heapqmodule.c
on
3.2
User selector
All users
Datepicker
All time
Commit history
Commits on Mar 11, 2013
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
44d5214
View commit details
Copy full SHA for 44d5214
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
Commits on Feb 16, 2006
Also make _heapq.nlargest() use Py_ssize_t instead of ints, to iter over
Show description for 13870b1
Yhg1s
committed
13870b1
View commit details
Copy full SHA for 13870b1
View code at this point
Browse repository at this point
Use 'n' format for Py_ssize_t variables to PyArg_ParseTuple(). Py_ssize_t
Show description for ed6254a
Yhg1s
committed
ed6254a
View commit details
Copy full SHA for ed6254a
View code at this point
Browse repository at this point
Use Py_ssize_t for counts and sizes.
loewis
committed
ad0a462
View commit details
Copy full SHA for ad0a462
View code at this point
Browse repository at this point
Commits on Jan 19, 2006
Check return result from Py_InitModule*(). This API can fail.
Show description for 1ac754f
nnorwitz
committed
1ac754f
View commit details
Copy full SHA for 1ac754f
View code at this point
Browse repository at this point
Commits on Sep 28, 2004
Plug a leak and beef-up test coverage.
rhettinger
committed
855d9a9
View commit details
Copy full SHA for 855d9a9
View code at this point
Browse repository at this point
Commits on Sep 6, 2004
Fix erroneous docstring comment.
rhettinger
committed
8158e84
View commit details
Copy full SHA for 8158e84
View code at this point
Browse repository at this point
Commits on Jun 20, 2004
Improve the documented advice on how to best use heapq.heapreplace().
rhettinger
committed
28224f8
View commit details
Copy full SHA for 28224f8
View code at this point
Browse repository at this point
Commits on Jun 15, 2004
Reverse argument order for nsmallest() and nlargest().
Show description for aefde43
rhettinger
committed
aefde43
View commit details
Copy full SHA for aefde43
View code at this point
Browse repository at this point
Commits on Jun 13, 2004
Fixup error exits in nlargest() and nsmallest().
rhettinger
committed
de72edd
View commit details
Copy full SHA for de72edd
View code at this point
Browse repository at this point
Install C version of heapq.nsmallest().
rhettinger
committed
2e3dfaf
View commit details
Copy full SHA for 2e3dfaf
View code at this point
Browse repository at this point
Commits on Jun 12, 2004
Install C version of heapq.nlargest().
Show description for c929766
rhettinger
committed
c929766
View commit details
Copy full SHA for c929766
View code at this point
Browse repository at this point
Commits on Apr 25, 2004
Correct the file name of _heapq module.
hyeshik
committed
ce97fbe
View commit details
Copy full SHA for ce97fbe
View code at this point
Browse repository at this point
Loading
You can’t perform that action at this time.