Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
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.6k
(2.6k)
Actions
Projects
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
cpython
Doc
c-api
refcounting.rst
on
main
User selector
All users
Datepicker
All time
Commit history
Commits on Feb 2, 2026
gh-144277: Fix usage of free-threaded terminology in the documentation (GH-144333)
ZeroIntensity
authored
3a0e183
View commit details
Copy full SHA for 3a0e183
View code at this point
Browse repository at this point
Commits on Jun 18, 2025
Docs: Fix markups for emphasis (GH-135598)
Show description for 46c60e0
Yuki Kobayashi
authored
46c60e0
View commit details
Copy full SHA for 46c60e0
View code at this point
Browse repository at this point
Commits on May 5, 2025
gh-133140: Add `PyUnstable_Object_IsUniquelyReferenced` for free-threading (#133144)
ZeroIntensity
authored
b275b8f
View commit details
Copy full SHA for b275b8f
View code at this point
Browse repository at this point
Commits on May 2, 2025
gh-133164: Add `PyUnstable_Object_IsUniqueReferencedTemporary` C API (gh-133170)
Show description for f237953
6 people
authored
f237953
View commit details
Copy full SHA for f237953
View code at this point
Browse repository at this point
Commits on Sep 17, 2024
Use pep role instead of url (#121611)
rffontenelle
authored
33eeccf
View commit details
Copy full SHA for 33eeccf
View code at this point
Browse repository at this point
Commits on Mar 7, 2024
gh-115664: Fix ordering of more versionadded and versionchanged directives (GH-116298)
serhiy-storchaka
authored
808a776
View commit details
Copy full SHA for 808a776
View code at this point
Browse repository at this point
Commits on Dec 1, 2023
gh-110481: Fix Py_SET_REFCNT() integer overflow (#112174)
Show description for 5f6ac2d
vstinner
authored
5f6ac2d
View commit details
Copy full SHA for 5f6ac2d
View code at this point
Browse repository at this point
Commits on Nov 17, 2023
gh-110481, doc: Add "immortal" term to the glossary (#112180)
vstinner
authored
7c50800
View commit details
Copy full SHA for 7c50800
View code at this point
Browse repository at this point
Commits on Aug 7, 2023
gh-98154: Clarify Usage of "Reference Count" In the Docs (gh-107552)
Show description for 5dc825d
ericsnowcurrently
authored
5dc825d
View commit details
Copy full SHA for 5dc825d
View code at this point
Browse repository at this point
Commits on Jul 23, 2023
gh-101100: Fix some broken sphinx references (#107095)
wulmer
authored
f5147c0
View commit details
Copy full SHA for f5147c0
View code at this point
Browse repository at this point
Commits on Dec 7, 2022
gh-98724: Fix Py_CLEAR() macro side effects (#99100) (#100070)
Show description for b11a384
vstinner
authored
b11a384
View commit details
Copy full SHA for b11a384
View code at this point
Browse repository at this point
Commits on Nov 24, 2022
Revert "gh-98724: Fix Py_CLEAR() macro side effects" (#99737)
Show description for 3a803bc
vstinner
authored
3a803bc
View commit details
Copy full SHA for 3a803bc
View code at this point
Browse repository at this point
Commits on Nov 9, 2022
gh-98724: Fix Py_CLEAR() macro side effects (#99100)
Show description for c03e05c
vstinner
authored
c03e05c
View commit details
Copy full SHA for c03e05c
View code at this point
Browse repository at this point
Commits on Oct 15, 2022
gh-96258: move Py_REFCNT and Py_SET_REFCNT to reference counting page (#96259)
QuakeIV
authored
4e2bd58
View commit details
Copy full SHA for 4e2bd58
View code at this point
Browse repository at this point
Commits on May 18, 2022
gh-91755: Remove doc of C API private refcount functions (#92918)
Show description for e0477ae
vstinner
authored
e0477ae
View commit details
Copy full SHA for e0477ae
View code at this point
Browse repository at this point
gh-91755: Document Py_IncRef and Py_DecRef as C functions (#91805)
Show description for 58a3d28
3 people
authored
58a3d28
View commit details
Copy full SHA for 58a3d28
View code at this point
Browse repository at this point
Commits on Nov 9, 2020
bpo-42294: Add borrowed/strong reference to doc glossary (GH-23206)
Show description for 23c5f93
vstinner
authored
23c5f93
View commit details
Copy full SHA for 23c5f93
View code at this point
Browse repository at this point
Commits on Nov 5, 2020
bpo-42262: Add Py_NewRef() and Py_XNewRef() (GH-23152)
Show description for 53a03aa
vstinner
authored
53a03aa
View commit details
Copy full SHA for 53a03aa
View code at this point
Browse repository at this point
Commits on Oct 30, 2019
bpo-38600: Change the mark up of NULL in the C API documentation. (GH-16950)
Show description for 25fc088
serhiy-storchaka
authored
25fc088
View commit details
Copy full SHA for 25fc088
View code at this point
Browse repository at this point
Commits on May 17, 2019
Doc: Replace the deprecated highlightlang directive by highlight. (#13377)
Show description for cbb6484
matrixise
authored and
kushaldas
committed
cbb6484
View commit details
Copy full SHA for cbb6484
View code at this point
Browse repository at this point
Commits on Dec 17, 2018
Fixed a few obvious mistakes in c-api docs (GH-11184)
Show description for 05c1b38
bombs-kim
authored and
miss-islington
committed
05c1b38
View commit details
Copy full SHA for 05c1b38
View code at this point
Browse repository at this point
Commits on Oct 6, 2010
Migrate to Sphinx 1.0 C language constructs.
birkenfeld
committed
60203b4
View commit details
Copy full SHA for 60203b4
View code at this point
Browse repository at this point
Commits on Dec 5, 2007
Merged revisions 59333-59370 via svnmerge from
Show description for b9eccbf
tiran
committed
b9eccbf
View commit details
Copy full SHA for b9eccbf
View code at this point
Browse repository at this point
Commits on Sep 1, 2007
Remove versionadded and versionchanged directives, fold information into text where necessary.
birkenfeld
committed
321976b
View commit details
Copy full SHA for 321976b
View code at this point
Browse repository at this point
Commits on Aug 15, 2007
Move the 3k reST doc tree in place.
birkenfeld
committed
116aa62
View commit details
Copy full SHA for 116aa62
View code at this point
Browse repository at this point
Loading
You can’t perform that action at this time.